Function at 0x40b770
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5ac6e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x350
mov edx, dword [esp + 0x364]
lea eax, [esp + 0xc]
push ebx
xor ebx, ebx
push eax
mov eax, dword [ecx + 0x18]
push 0x20019
push ebx
push edx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bb05
push ebx
push ebx
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x58]
push ebx
lea edx, [esp + 0x54]
push ecx
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40b7e9
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40bb05
cmp dword [esp + 0x3c], ebx
jne 0x40b7ff
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40bb05
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x54]
push 0x104
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x4c], esi
jne 0x40bae6
movsx eax, byte [esp + 0x54]
push eax
call fcn.0057ef8c
add esp, 4
test eax, eax
je 0x40bae6
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
lea edx, [esp + 0x5c]
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bae6
mov ecx, dword [0x6754d4]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x158]
push edx
push eax
push ebx
push ebx
push 0x64fe74
push ecx
mov dword [esp + 0x380], ebx
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b8ca
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
push edx
push ebx
push ebx
push 0x64fe6c
push eax
mov dword [esp + 0x28], 0x104
call ebp
test eax, eax
jne 0x40b905
lea ecx, [esp + 0x54]
lea edx, [esp + 0x28]
push ecx
push 0x64efb0
push edx
call fcn.00593b08
add esp, 0xc
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push ebx
mov esi, 4
push 0x64fe60
push edx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x40b93c
cmp dword [esp + 0x14], ebx
setne al
and eax, 0xff
mov dword [esp + 0x30], eax
jmp 0x40b940
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push ebx
push 0x64fe4c
push eax
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x40b973
cmp dword [esp + 0x14], ebx
setne cl
and ecx, 0xff
mov dword [esp + 0x34], ecx
jmp 0x40b977
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push ebx
push 0x64fe38
push ecx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x40b9aa
cmp dword [esp + 0x14], ebx
setne dl
and edx, 0xff
mov dword [esp + 0x38], edx
jmp 0x40b9ae
mov dword [esp + 0x38], ebx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push ebx
push 0x64fe20
push edx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x40b9e0
cmp dword [esp + 0x14], ebx
setne al
and eax, 0xff
mov dword [esp + 0x2c], eax
jmp 0x40b9e4
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push ebx
push 0x64fe18
push eax
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x40ba17
cmp dword [esp + 0x14], ebx
setne cl
and ecx, 0xff
mov dword [esp + 0x44], ecx
jmp 0x40ba1b
mov dword [esp + 0x44], ebx
mov edx, dword [esp + 0x370]
push 0xffffffffffffffff
mov dword [esp + 0x40], ebx
mov edi, dword [edx + 0x1c]
lea esi, [edx + 0x14]
mov ecx, esi
lea eax, [edi + 1]
push eax
call fcn.00417cc0
mov edx, dword [esi + 4]
lea ecx, [edi + edi*8]
mov eax, dword [edx + ecx*4]
lea esi, [edx + ecx*4]
cmp eax, dword [esp + 0x24]
je 0x40ba6f
cmp eax, ebx
je 0x40ba56
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [esi], eax
lea edx, [esp + 0x28]
lea ecx, [esi + 4]
push edx
call fcn.0059ae76
mov eax, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x30]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x44]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov dword [esp + 0x368], 1
call fcn.0059ad3d
mov edx, dword [esp + 0x24]
mov dword [esp + 0x368], 0xffffffff
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
inc ecx
cmp esi, ebx
mov dword [esp + 0x20], ecx
je 0x40b80c
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x354]
pop ebx
mov dword fs:[0], ecx
add esp, 0x35c
ret 8