Function at 0x4040d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x428d17
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x4346c0]
push ebx
push ebp
push esi
xor esi, esi
mov ebx, 1
mov dword [esp + 0x20], 0
xor ebp, ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x18], eax
push 0x438548
lea ecx, [esp + 0x18]
mov dword [esp + 0x144], ebx
call fcn.0041ea0b
mov ecx, dword [esp + 0x14c]
mov byte [esp + 0x140], 2
push ecx
lea ecx, [esp + 0x10]
call fcn.0041ea0b
push ebx
lea edx, [esp + 0x20]
push esi
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 3
call fcn.0041c398
mov eax, dword [eax]
push 0x434228
push eax
mov byte [esp + 0x148], 4
call fcn.0040e344
add esp, 8
test eax, eax
jne 0x4041b5
lea eax, [esp + 0x30]
push ebx
push eax
lea ecx, [esp + 0x14]
call fcn.0041c42e
mov eax, dword [eax]
push 0x434224
push eax
call fcn.0040e344
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete byte [esp + 0x13]
call fcn.0041e99d
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], bl
test al, al
jne 0x4041ba
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 3
call fcn.0041e99d
mov al, byte [esp + 0x13]
test al, al
je 0x404210
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x1c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0xc]
add eax, 0xfffffffe
push eax
push ebx
push edx
call fcn.0041c398
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 5
call fcn.0041ead6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 3
call fcn.0041e99d
push str.HKEY_LOCAL_MACHINE
lea ecx, [esp + 0x10]
call fcn.0041c59a
test eax, eax
jl 0x404227
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x10]
call fcn.0041c59a
test eax, eax
jl 0x40423e
mov esi, SysReAllocStringLen
push str.HKEY_CLASSES_ROOT
lea ecx, [esp + 0x10]
call fcn.0041c59a
test eax, eax
jl 0x404255
mov esi, SysReAllocStringLen
push 0x43418c
lea ecx, [esp + 0x10]
call fcn.0041c59a
inc eax
lea ecx, [esp + 0xc]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0041c375
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 6
call fcn.0041ead6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 3
call fcn.0041e99d
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041ead6
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push 0x20019
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x150]
test eax, eax
jne 0x40438b
lea ecx, [esp + 0x28]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404305
lea edx, [esp + 0x34]
lea eax, [esp + 0x14]
push edx
push 0x43444c
push eax
call fcn.0041c920
add esp, 0xc
mov ebp, ebx
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], 2
call fcn.0041e99d
test ebp, ebp
jne 0x4043cb
mov edx, dword [esp + 0x14c]
lea ecx, [esp + 0xc]
push edx
call fcn.0041ea0b
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 7
call fcn.0041c59a
test eax, eax
jl 0x40439e
push str.HKEY_LOCAL_MACHINE
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x14]
call fcn.0041c212
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0xc]
push eax
push esi
mov esi, dword [esp + 0x150]
push ecx
push esi
call fcn.004040d0
add esp, 0x10
mov dword [esp + 0x20], ebx
jmp 0x4043b8
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], 2
call fcn.0041e99d
jmp 0x404329
mov edx, dword [esp + 0x154]
mov esi, dword [esp + 0x148]
push edx
mov ecx, esi
call fcn.0041ea0b
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], 2
call fcn.0041e99d
jmp 0x4043e2
mov esi, dword [esp + 0x148]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0041e712
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], bl
call fcn.0041e99d
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 0
call fcn.0041e99d
mov ecx, dword [esp + 0x138]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret