Function at 0x4011c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x7299d8]
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x4011ec
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SoftwareEA_GamesNeed_For_Speed_Underground
jmp 0x4011fd
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push str.SoftwareEA_GamesNFS_Underground
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40143e
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push str.Install_Dir
mov ebx, 0x104
push edx
mov dword [esp + 0x34], 1
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
jne 0x40127f
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x28]
push ecx
call esi
test eax, eax
je 0x40127f
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x20]
mov byte [eax + 0x70fd1c], cl
inc eax
test cl, cl
jne 0x401270
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push str.CD_Drive
push edx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x4012df
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x28]
push ecx
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4012df
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x20]
mov byte [eax + 0x70fc18], cl
inc eax
test cl, cl
jne 0x4012d0
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
xor edi, edi
push edi
push str.CacheSize
push edx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x40131e
lea eax, [esp + 0x20]
push eax
call fcn.0066448a
cdq
add esp, 4
mov dword [0x70fe20], eax
mov dword [0x70fe24], edx
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push edi
push str.SwapSize
push ecx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x40135b
lea edx, [esp + 0x20]
push edx
call fcn.0066448a
cdq
add esp, 4
mov dword [0x70fe28], eax
mov dword [0x70fe2c], edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push str.Language
push eax
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x4013c5
mov eax, dword [str.English_US]
test eax, eax
je 0x4013cb
mov eax, 0x6f64c0
mov esi, eax
nop
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.006672ab
add esp, 8
test eax, eax
je 0x4013b3
mov ecx, dword [esi + 0xc]
add esi, 0xc
inc edi
test ecx, ecx
mov eax, esi
jne 0x401390
jmp 0x4013cb
lea eax, [edi + edi*2]
mov ecx, dword [eax*4 + 0x6f64c4]
mov dword [0x6f64b8], ecx
jmp 0x4013cb
mov dword [0x6f64b8], edi
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push str.StreamingInstall
push edx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x401422
lea eax, [esp + 0x20]
push 0x6bd900
push eax
call fcn.006672ab
mov edx, dword [esp + 0x20]
add esp, 8
test eax, eax
setne cl
push edx
mov byte [0x72b1cc], cl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
push edx
mov byte [0x72b1cc], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret