Function at 0x6cb680
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareElectronic_ArtsEA_GamesNeed_for_Speed_Most_Wantedergc
push reloc.WS2_32.dll_bind
call esi
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x6cb6f6
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x982974
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], 0x15
call ebp
test eax, eax
je 0x6cb6ef
mov byte [0x982974], 0
jmp 0x6cb6f6
mov byte [0x982988], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 0x2001f
push 0
push str.SoftwareEA_GamesNeed_for_Speed_Most_Wanted
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x6cb735
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareEA_GamesNeed_for_Speed_Most_Wanted
push reloc.WS2_32.dll_bind
call esi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.Install_Dir
mov ebx, 0x104
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
jne 0x6cb79f
push ebx
lea edx, [esp + 0x2c]
push edx
mov eax, edx
push eax
call esi
test eax, eax
je 0x6cb79f
xor eax, eax
jmp 0x6cb790
mov cl, byte [esp + eax + 0x28]
mov byte [eax + 0x93dd0c], cl
inc eax
test cl, cl
jne 0x6cb790
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
xor edi, edi
push edi
push str.CD_Drive
push ecx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x6cb7ff
push ebx
lea edx, [esp + 0x2c]
push edx
mov eax, edx
push eax
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
je 0x6cb7ff
xor eax, eax
jmp 0x6cb7f0
mov cl, byte [esp + eax + 0x28]
mov byte [eax + 0x93dc08], cl
inc eax
test cl, cl
jne 0x6cb7f0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push str.FirstTime
push ecx
mov dword [esp + 0x2c], ebx
call ebp
push 4
neg eax
lea edx, [esp + 0x24]
push edx
sbb eax, eax
push 4
neg eax
push 1
mov dword [0x901820], eax
mov eax, dword [esp + 0x20]
push str.FirstTime
push eax
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push str.CacheSize
push ecx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x6cb88a
lea edx, [esp + 0x28]
push edx
call fcn.007c6380
cdq
add esp, 4
mov dword [0x93de10], eax
mov dword [0x93de14], edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
push str.SwapSize
push eax
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x6cb8c7
lea ecx, [esp + 0x28]
push ecx
call fcn.007c6380
cdq
add esp, 4
mov dword [0x93de18], eax
mov dword [0x93de1c], edx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push str.Language
push edx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x6cb94f
mov eax, dword [str.English_US]
test eax, eax
je 0x6cb955
mov eax, 0x8fb578
mov esi, eax
jmp 0x6cb900
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.007e6630
add esp, 8
test eax, eax
je 0x6cb923
mov ecx, dword [esi + 0xc]
add esi, 0xc
inc edi
test ecx, ecx
mov eax, esi
jne 0x6cb900
jmp 0x6cb955
lea eax, [edi + edi*2]
shl eax, 2
mov edx, dword [eax + 0x8fb57c]
mov ecx, dword [eax + 0x8fb578]
mov dword [0x8fb574], edx
mov edx, dword [eax + 0x8fb580]
mov dword [0x982d20], ecx
mov dword [0x982d24], edx
jmp 0x6cb955
mov dword [0x8fb574], edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.StreamingInstall
push eax
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x6cb9ac
lea ecx, [esp + 0x28]
push 0x8af5d4
push ecx
call fcn.007e6630
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
setne dl
push eax
mov byte [0x982c30], dl
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 + 0x10]
push eax
mov byte [0x982c30], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret