Function at 0x4056b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x34], eax
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
xor esi, esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
test eax, eax
je 0x40580a
lea eax, [ebp - 0x2c]
test eax, eax
je 0x40580a
lea eax, [ebp - 0x20]
test eax, eax
je 0x40580a
lea eax, [ebp + 0xc]
test eax, eax
je 0x40580a
test ebx, ebx
je 0x4083c4
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
call fcn.004068b0
test al, al
jne 0x40580a
cmp edx, 4
je 0x405800
push 0xa
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
lea edx, [ebp - 0x1c]
mov ecx, ebx
call fcn.00406120
mov esi, eax
test esi, esi
jne 0x4057bd
lea eax, [ebp - 0x1c]
push eax
push 0x17
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4011c0
call fcn.004068d0
add esp, 0x14
test al, al
je 0x40580a
lea eax, [ebp - 0x24]
push eax
push 0x20019
push esi
push dword [ebp - 0x20]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x4083ea
mov edi, dword [ebp - 0x20]
test esi, esi
jne 0x4057bd
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push esi
push 0x40122c
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x408415
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4057d2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
test edi, edi
je 0x4057e0
push edi
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4084a8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407980
mov esp, ebp
pop ebp
ret 8
mov edx, 3
jmp 0x405734
mov esi, 0xfffb0000
jmp 0x40579c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x24]
call fcn.00405820
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x20]
test al, al
je 0x40580a
jmp 0x40579c
mov eax, dword [ebp - 0x20]
cmp ecx, 2
jne 0x408405
push ebx
push eax
push 0x27
push 0
call fcn.0040948b
add esp, 0x10
jmp 0x40580a
push eax
mov edx, 0x14
call fcn.00409445
jmp 0x40580a
mov eax, dword [ebp - 0x28]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll____U_YAPAXI_Z]
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x408445
mov esi, 0xffff0000
jmp 0x4057bd
push dword [ebp - 0x28]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
push 0
push 0
push 0x40122c
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4057bd
push 2
push 0x401808
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4057bd
push ebx
push dword [ebp - 0x34]
mov esi, 0xffff0000
push 3
push eax
call fcn.0040948b
add esp, 0x10
jmp 0x4057bd
push eax
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
add esp, 4
jmp 0x4057eb