Function at 0x405800
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x431102
push eax
mov eax, 0x4028
mov dword fs:[0], esp
call fcn.00414cb0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
mov eax, dword [0x43e9dc]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x4048]
lea ecx, [esp + 0x14]
push esi
push 0x43d934
push ecx
mov dword [esp + 0x404c], ebx
call fcn.0042445b
mov edx, dword [0x43e9dc]
add esp, 0xc
mov dword [esp + 0x10], edx
push 0x2e
lea ecx, [esp + 0x18]
mov byte [esp + 0x4044], 1
call fcn.0042975e
test eax, eax
push esi
jge 0x40588e
lea eax, [esp + 0x14]
push 0x43db80
push eax
jmp 0x405898
lea ecx, [esp + 0x14]
push 0x43d934
push ecx
call fcn.0042445b
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push 0x20019
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4058ed
lea ecx, [esp + 0x10]
mov byte [esp + 0x4040], bl
call fcn.00429394
lea ecx, [esp + 0x14]
mov dword [esp + 0x4040], 0xffffffff
call fcn.00429394
mov eax, 1
jmp 0x405c14
mov eax, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x40], 0x2000
call ebp
mov ecx, dword [esp + 0x20]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40594e
lea ecx, [esp + 0x10]
mov byte [esp + 0x4040], bl
call fcn.00429394
lea ecx, [esp + 0x14]
mov dword [esp + 0x4040], 0xffffffff
call fcn.00429394
mov eax, 2
jmp 0x405c14
or esi, 0xffffffff
lea edi, [esp + 0x30]
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jae 0x40598d
lea ecx, [esp + 0x10]
mov byte [esp + 0x4040], bl
call fcn.00429394
lea ecx, [esp + 0x14]
mov dword [esp + 0x4040], esi
call fcn.00429394
mov eax, 3
jmp 0x405c14
lea edx, [esp + 0x30]
lea eax, [esp + 0x10]
push edx
push str._sShellOpencommand
push eax
call fcn.0042445b
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push ebx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4059ed
lea ecx, [esp + 0x10]
mov byte [esp + 0x4040], bl
call fcn.00429394
lea ecx, [esp + 0x14]
mov dword [esp + 0x4040], esi
call fcn.00429394
mov eax, 4
jmp 0x405c14
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x2035]
mov edx, dword [esp + 0x20]
mov byte [esp + 0x2034], bl
mov dword [esp + 0x28], 0x2000
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x2034]
push eax
push ecx
push ebx
push ebx
push ebx
push edx
call ebp
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x405a62
lea ecx, [esp + 0x10]
mov byte [esp + 0x4040], bl
call fcn.00429394
lea ecx, [esp + 0x14]
mov dword [esp + 0x4040], 0xffffffff
call fcn.00429394
mov eax, 5
jmp 0x405c14
mov ecx, dword [0x43e9dc]
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x2034]
lea eax, [esp + 0x24]
push edx
push 0x43d934
push eax
mov byte [esp + 0x404c], 2
call fcn.0042445b
mov ecx, dword [0x43e9dc]
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x2040]
lea eax, [esp + 0x28]
push edx
push 0x43d934
push eax
mov byte [esp + 0x4058], 3
call fcn.0042445b
add esp, 0x18
lea ecx, [esp + 0x1c]
call fcn.00429799
mov ecx, dword [0x43e9dc]
mov dword [esp + 0x18], ecx
push ebx
push 0x43db60
lea ecx, [esp + 0x24]
mov byte [esp + 0x4048], 4
call fcn.004240e3
cmp eax, ebx
jge 0x405af5
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
push edx
call fcn.004294cd
jmp 0x405b2a
add eax, 4
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0042403b
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4044], 5
call fcn.004294cd
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4040], 4
call fcn.00429394
push 0x442888
push 0x43d948
lea ecx, [esp + 0x20]
call fcn.00423e5c
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 1
jge 0x405ba5
lea ecx, [esp + 0x18]
mov byte [esp + 0x4040], 3
call fcn.00429394
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4040], 2
call fcn.00429394
lea ecx, [esp + 0x24]
mov byte [esp + 0x4040], 1
call fcn.00429394
lea ecx, [esp + 0x10]
mov byte [esp + 0x4040], bl
call fcn.00429394
lea ecx, [esp + 0x14]
mov dword [esp + 0x4040], 0xffffffff
call fcn.00429394
mov eax, 6
jmp 0x405c14
mov ecx, dword [esp + 0x404c]
push eax
push 0x43d934
push ecx
call fcn.00414f4e
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x4040], 3
call fcn.00429394
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4040], 2
call fcn.00429394
lea ecx, [esp + 0x24]
mov byte [esp + 0x4040], 1
call fcn.00429394
lea ecx, [esp + 0x10]
mov byte [esp + 0x4040], bl
call fcn.00429394
lea ecx, [esp + 0x14]
mov dword [esp + 0x4040], 0xffffffff
call fcn.00429394
xor eax, eax
mov ecx, dword [esp + 0x4038]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4034
ret