Function at 0x489590
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5d0125
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov esi, dword [esp + 0x180]
xor ebx, ebx
push ebx
mov ebp, ecx
mov dword [esp + 0x1c], ebx
call fcn.00488800
test al, al
jne 0x4895eb
xor eax, eax
jmp 0x489ab2
cmp dword [esi + 0x10], ebx
jne 0x4895f4
xor esi, esi
jmp 0x4895fc
cmp dword [esi + 0x14], 8
jb 0x4895fc
mov esi, dword [esi]
mov ecx, dword [ebp]
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0x34], eax
cmp eax, ebx
je 0x489aae
xor al, al
lea esp, [esp]
cmp al, bl
jne 0x48967f
lea edx, [esp + 0x148]
push 0x5fcf00
push edx
call fcn.00423280
add esp, 8
mov esi, eax
or dword [esp + 0x18], 1
mov dword [esp + 0x178], ebx
cmp dword [0x695aa8], ebx
je 0x489663
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x695aa8]
je 0x489663
call fcn.004443b0
jmp 0x489668
mov al, byte [0x68a580]
cmp al, bl
je 0x48967f
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, 1
jae 0x489683
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 1
mov dword [esp + 0x178], 0xffffffff
je 0x4896c4
mov eax, dword [esp + 0x164]
and dword [esp + 0x18], 0xfffffffe
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x15c], 8
jb 0x4896c4
mov ecx, dword [esp + 0x148]
push ecx
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], bl
je 0x4895e4
push str.Cant_read_value_of_key__s
lea ecx, [esp + 0x104]
call fcn.00402bb0
mov edi, 7
xor edx, edx
mov dword [esp + 0x178], 1
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], dx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
xor eax, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], ax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov byte [esp + 0x178], 3
call fcn.00425e70
cmp eax, ebx
je 0x48974b
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x108]
push ecx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x48975b
lea edx, [esp + 0x100]
push edx
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x20], eax
mov byte [esp + 0x178], 4
call fcn.00420510
mov dword [esp + 0x24], eax
mov byte [esp + 0x178], 5
call fcn.00420510
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
push str.wx.sys_error
lea ecx, [esp + 0xe0]
mov byte [esp + 0x17c], 6
call fcn.00402bb0
push 1
lea eax, [esp + 0x128]
push eax
mov ecx, ebp
mov byte [esp + 0x180], 7
call fcn.00486ed0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x8c], esp
push ecx
mov ecx, eax
call fcn.00406280
mov byte [esp + 0x184], 9
mov dword [esp + 0x90], 1
mov dword [esp + 0x98], str....._srcmsw_registry.cpp
mov dword [esp + 0xa0], str.wxRegKey::GetValueType
mov dword [esp + 0x9c], 0x365
mov dword [esp + 0xa4], 0x5fcf00
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
call sub.KERNEL32.dll_GetCurrentThreadId
xor edx, edx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], dx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
mov byte [esp + 0x184], 0xa
call sub.KERNEL32.dll_GetLastError
push 0xffffffffffffffff
mov esi, eax
push ebx
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0xcc]
call fcn.00402610
mov ecx, dword [esp + 0xbc]
cmp ecx, ebx
jne 0x4898d4
push 0x20
call fcn.00584773
add esp, 4
mov dword [esp + 0x88], eax
mov byte [esp + 0x184], 0xb
cmp eax, ebx
je 0x4898c1
mov ecx, eax
call fcn.004287b0
jmp 0x4898c3
xor eax, eax
mov ecx, eax
mov byte [esp + 0x184], 0xa
mov dword [esp + 0xbc], ecx
lea edx, [esp + 0xe8]
push edx
call fcn.004775a0
mov dword [eax], esi
mov ecx, dword [ebp + 0x34]
lea eax, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x98]
mov byte [esp + 0x18c], 0xc
call fcn.004651d0
mov edx, dword [esp + 0xd0]
push edx
mov byte [esp + 0x17c], 8
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xc8], 8
jb 0x489932
mov eax, dword [esp + 0xb4]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov word [esp + 0xb4], cx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov esi, ecx
cmp ecx, ebx
je 0x489965
call fcn.0040c030
push esi
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x140]
push edx
call fcn.005844d1
mov esi, 8
add esp, 4
cmp dword [esp + 0x138], esi
jb 0x489993
mov eax, dword [esp + 0x124]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0xf8]
xor ecx, ecx
push edx
mov dword [esp + 0x13c], edi
mov dword [esp + 0x138], ebx
mov word [esp + 0x128], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xf0], esi
jb 0x4899d4
mov eax, dword [esp + 0xdc]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov word [esp + 0xdc], cx
lea ecx, [esp + 0x20]
mov dword [esp + 0xf0], edi
mov dword [esp + 0xec], ebx
mov byte [esp + 0x178], 3
call fcn.004020c0
mov edx, dword [esp + 0x50]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x48], esi
jb 0x489a1d
mov eax, dword [esp + 0x34]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x74]
xor ecx, ecx
push edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x6c], esi
jb 0x489a4c
mov eax, dword [esp + 0x58]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x11c]
xor ecx, ecx
push edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], cx
mov dword [esp + 0x17c], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x114], esi
jb 0x489a8f
mov eax, dword [esp + 0x100]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], cx
mov al, 1
jmp 0x489620
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.00585b7b
add esp, 0x168
ret 4