Function at 0x403da0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x52b06b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x52c
push ebx
push ebp
push esi
push edi
push 0x56e75c
call fcn.00403940
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x440]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x440]
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push ecx
xor ebx, ebx
push eax
push edx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
call fcn.00403c60
add esp, 0x14
cmp eax, ebx
je 0x403e20
or eax, 0xffffffff
jmp 0x4040b5
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x583504
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.00510c65
lea ecx, [esp + 0x20]
mov dword [esp + 0x544], ebx
push ecx
push 0x20019
push ebx
push 0x56e720
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x403e86
lea ecx, [esp + 0x10]
mov dword [esp + 0x544], 0xffffffff
call fcn.00510bf7
mov eax, 0xfffffffe
jmp 0x4040b5
mov ecx, dword [esp + 0x20]
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
push ebx
lea eax, [esp + 0x348]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40403c
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x238]
lea edx, [esp + 0x338]
rep stosd dword es:[edi], eax
push edx
push 0x56e720
lea eax, [esp + 0x240]
push 0x56e718
push eax
call fcn.00412aab
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x148]
lea edx, [esp + 0x248]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x148]
push ecx
push 0x56e70c
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403d10
add esp, 0x20
test eax, eax
je 0x403ff6
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x138]
push ecx
lea ecx, [esp + 0x440]
push eax
push ecx
call fcn.00413750
add esp, 0xc
test eax, eax
jne 0x403ff6
mov ecx, 0x40
lea edi, [esp + 0x138]
lea edx, [esp + 0x138]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x23c]
push 0x56e700
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403d10
lea ecx, [esp + 0x148]
lea edx, [esp + 0x20]
push ecx
push 0x56e6f8
push edx
call fcn.0050e4c5
mov eax, dword [esp + 0x2c]
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push eax
call esi
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
push ebx
push ecx
lea eax, [esp + 0x40]
push 0x100
push eax
lea ecx, [esp + 0x3c]
push 4
push ecx
push 0x170002
push edx
mov dword [esp + 0x4c], 0x1010101
call ebp
test eax, eax
jne 0x4040ce
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x338]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebx
lea edx, [esp + 0x30]
push ebx
lea ecx, [esp + 0x348]
inc eax
push edx
mov edx, dword [esp + 0x34]
push ecx
push eax
push edx
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x48], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x403ec3
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x19]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x17]
and ecx, 0xff
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x1a]
and eax, 0xff
push edx
mov edx, dword [esp + 0x1d]
push eax
mov eax, dword [esp + 0x20]
and ecx, 0xff
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x55c]
and eax, 0xff
push edx
push eax
push 0x56e6d8
push ecx
call fcn.00412aab
add esp, 0x20
lea ecx, [esp + 0x10]
mov dword [esp + 0x544], 0xffffffff
call fcn.00510bf7
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x538
ret
mov edx, dword [esp + 0x54c]
mov ecx, 8
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3d]
mov ecx, dword [esp + 0x3c]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x3f]
push ecx
mov ecx, dword [esp + 0x42]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x45]
push ecx
mov ecx, dword [esp + 0x48]
and eax, 0xff
and ecx, 0xff
push eax
push ecx
push 0x56e6d8
push edx
call fcn.00412aab
mov edx, dword [esp + 0x40]
add esp, 0x20
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x544], 0xffffffff
call fcn.00510bf7
xor eax, eax
jmp 0x4040b5