Function at 0x49baf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x70]
push ebp
push esi
test ebx, ebx
push edi
jl 0x49bd40
mov ecx, dword [0x625334]
mov ebp, dword [0x625330]
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebx, edx
jge 0x49bd40
push 0x6d63
mov ecx, 0x628700
call fcn.005cbd90
lea ecx, [esp + 0x7c]
push 8
push ecx
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00405da0
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
push eax
push ebx
mov ecx, esi
mov byte [edx], 0
call fcn.005dfb10
cmp dword [esi + 0x37c], ebx
je 0x49bb70
push 1
push ebx
mov ecx, esi
call fcn.005df8c0
push 0x6d62
mov ecx, 0x628700
call fcn.005cbd90
mov esi, eax
test esi, esi
je 0x49bba0
mov edi, dword [esi]
push 0
sub esp, 0xc
lea edx, [esp + 0x3c]
mov ecx, esp
push edx
call fcn.00407bf0
mov ecx, esi
call dword [edi + 0xc4]
test ebx, ebx
jne 0x49bce5
push 0x6d65
mov ecx, 0x628700
call fcn.005cbd90
mov esi, eax
test esi, esi
mov dword [esp + 0x7c], esi
je 0x49bcfe
mov eax, dword [0x625330]
lea edx, [esp + 0x20]
mov ecx, dword [eax]
push ecx
push edx
call fcn.0040b120
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
sub eax, ebp
add eax, 0x40
push eax
call fcn.005f0c55
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x49bcce
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0x610588
call fcn.0040a330
add esp, 0xc
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x40
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftMicrosoft_GamesZoo_Tycoon1.0
push reloc.ijl15.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49bc8c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x38]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x610654
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x49bc8c
mov edi, str.____
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
push ebp
call fcn.005f106c
mov edi, dword [esi]
add esp, 0x10
lea ecx, [esp + 0x7c]
push 0
call fcn.005dc0b0
sub esp, 0xc
mov ecx, esp
push eax
push ebp
call fcn.00414210
mov ecx, esi
call dword [edi + 0xc4]
push ebp
call fcn.005f0905
add esp, 4
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.0041d810
jmp 0x49bcfe
mov eax, dword [0x625330]
lea edx, [ebx + ebx*2]
mov ecx, dword [eax + edx*4]
push ecx
push 0x6d65
call fcn.0040b0e0
add esp, 8
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
mov dword [0x625340], ebx
test ecx, ecx
je 0x49bd40
cmp eax, 0x80
jbe 0x49bd2a
push ecx
call fcn.005f0905
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
dec eax
shr eax, 3
mov edx, dword [eax*4 + 0x61f1a0]
lea eax, [eax*4 + 0x61f1a0]
mov dword [ecx], edx
mov dword [eax], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret