Function at 0x5b7410
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_Underground_2ergc
push reloc.WS2_32.dll_bind
call esi
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x5b7486
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x86ff8c
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 0x5b747f
mov byte [0x86ff8c], 0
jmp 0x5b7486
mov byte [0x86ffa0], 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_Underground_2
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x5b74c5
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareEA_GamesNeed_for_Speed_Underground_2
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 0x5b752f
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x30]
push eax
call esi
test eax, eax
je 0x5b752f
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x28]
mov byte [eax + 0x86e9b4], cl
inc eax
test cl, cl
jne 0x5b7520
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 0x5b758f
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x30]
push eax
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
je 0x5b758f
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x28]
mov byte [eax + 0x86e8b0], cl
inc eax
test cl, cl
jne 0x5b7580
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.NotFirstTime
push ecx
mov dword [esp + 0x2c], ebx
call ebp
push 4
neg eax
lea edx, [esp + 0x24]
push edx
sbb eax, eax
push 4
inc eax
push edi
mov dword [0x870d20], eax
mov eax, dword [esp + 0x20]
push str.NotFirstTime
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 0x5b7618
lea edx, [esp + 0x28]
push edx
call fcn.0075d37b
cdq
add esp, 4
mov dword [0x86eab8], eax
mov dword [0x86eabc], 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 0x5b7655
lea ecx, [esp + 0x28]
push ecx
call fcn.0075d37b
cdq
add esp, 4
mov dword [0x86eac0], eax
mov dword [0x86eac4], 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 0x5b76c4
mov eax, dword [str.English_US]
test eax, eax
je 0x5b76ca
mov eax, 0x7fca08
mov esi, eax
lea esp, [esp]
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0075da8f
add esp, 8
test eax, eax
je 0x5b76b3
mov ecx, dword [esi + 0xc]
add esi, 0xc
inc edi
test ecx, ecx
mov eax, esi
jne 0x5b7690
jmp 0x5b76ca
lea edx, [edi + edi*2]
mov eax, dword [edx*4 + 0x7fca0c]
mov dword [0x7fca00], eax
jmp 0x5b76ca
mov dword [0x7fca00], edi
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.StreamingInstall
push ecx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x5b770d
lea edx, [esp + 0x28]
push 0x7a3084
push edx
call fcn.0075da8f
add esp, 8
test eax, eax
setne al
mov byte [0x8709c8], al
jmp 0x5b7714
mov byte [0x8709c8], 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret