Function at 0x450fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b75f2
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4eaf00]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x18], 0
mov al, byte [0x4c610d]
mov byte [ebp - 0x134], al
push 0x103
push 0
lea ecx, [ebp - 0x133]
push ecx
call fcn.0047fa50
add esp, 0xc
mov dword [ebp - 0x24], 0x104
mov dword [ebp - 0x10], 1
mov byte [ebp - 0x25], 1
call fcn.00406fe0
mov ecx, eax
call fcn.004453d0
mov dword [ebp - 0x14], eax
call fcn.00406fe0
mov ecx, eax
call fcn.004453f0
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x18]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x14]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x451086
mov byte [ebp - 0x25], 0
jmp 0x4510b7
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4510ad
mov byte [ebp - 0x25], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, byte [ebp - 0x25]
test ecx, ecx
jne 0x451322
lea edx, [ebp - 0x150]
push edx
call fcn.00441c40
add esp, 4
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1e4]
call fcn.00452100
mov byte [ebp - 4], 1
push 4
push 0x4c620c
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.0040d7a0
add esp, 0xc
mov dword [ebp - 0x264], eax
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x268], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x268]
call fcn.00404660
push eax
call fcn.004811b2
add esp, 8
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x1e5], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x204]
call fcn.00402fb0
movzx eax, byte [ebp - 0x1e5]
test eax, eax
je 0x4511b8
push 0x40
push 1
push str...gameinfo.ini
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x220]
push edx
call fcn.0040d7a0
add esp, 0xc
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x270]
call fcn.00404660
push eax
lea ecx, [ebp - 0x1e4]
call fcn.004521b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.00402fb0
jmp 0x451281
push 4
push 0x4c622c
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x240]
push edx
call fcn.0040d7a0
add esp, 0xc
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x278]
call fcn.00404660
push eax
call fcn.004811b2
add esp, 8
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x221], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.00402fb0
movzx ecx, byte [ebp - 0x221]
test ecx, ecx
je 0x451281
push 0x40
push 1
push str.gameinfo.ini
lea edx, [ebp - 0x150]
push edx
lea eax, [ebp - 0x25c]
push eax
call fcn.0040d7a0
add esp, 0xc
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
mov dword [ebp - 0x280], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x280]
call fcn.00404660
push eax
lea ecx, [ebp - 0x1e4]
call fcn.004521b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.00402fb0
mov edx, dword [ebp - 0x1e4]
mov eax, dword [edx + 4]
lea ecx, [ebp + eax - 0x1e4]
call fcn.00451ef0
movzx ecx, al
test ecx, ecx
je 0x4512df
push 0x4c610e
mov ecx, dword [ebp + 8]
call fcn.00402f40
mov edx, dword [ebp - 0x260]
or edx, 1
mov dword [ebp - 0x260], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1e4]
call fcn.00409370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.00402fb0
mov eax, dword [ebp + 8]
jmp 0x451343
push 0x104
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x1e4]
call fcn.004520c0
lea ecx, [ebp - 0x1e4]
call fcn.00452200
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1e4]
call fcn.00409370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.00402fb0
lea ecx, [ebp - 0x134]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402f40
mov edx, dword [ebp - 0x260]
or edx, 1
mov dword [ebp - 0x260], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0047b434
mov esp, ebp
pop ebp
ret