Function at 0x4037c5
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xa0
mov eax, 0x4247f9
call fcn.0040db21
mov esi, ecx
mov dword [ebp - 0x78], esi
mov eax, dword [ebp + 8]
xor ecx, ecx
mov ebx, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0x18], ecx
push ecx
mov dword [ebp - 0x94], eax
xor eax, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
push 0x104
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004064c8
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 1
jmp 0x403835
xor edx, edx
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x90]
cmp dword [ebp - 0x14], 8
push ecx
push edx
push edx
push edx
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x98]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x4038e7
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x71], al
cmovae ecx, dword [ebp - 0x28]
call fcn.00407f34
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00401d68
mov byte [ebp - 4], 2
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa0]
lea ebx, [esi + 0x38]
push eax
mov ecx, ebx
call fcn.00405fb4
mov esi, dword [eax]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.00401bf8
cmp esi, dword [ebx]
je 0x40390e
mov ebx, dword [esi + 0x28]
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebx + 4]
ja 0x40395d
jb 0x4038de
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebx]
ja 0x40395d
mov esi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x7c]
inc edi
mov dword [ebp - 0x84], edi
test eax, eax
je 0x403833
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00401bf8
call fcn.0040dad0
ret 0xc
push 0x20
call fcn.0040b9f6
mov ebx, eax
pop ecx
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x40393f
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov byte [ebx + 0x18], 1
jmp 0x403941
xor ebx, ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x4038de
mov esi, dword [ebp + 0x10]
mov edi, ebx
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x84]
mov byte [ebp - 0x71], 1
push dword [ebp - 0x94]
lea ecx, [ebp - 0x40]
call fcn.00401d68
mov byte [ebp - 4], 4
mov esi, 0x42d62c
push esi
call fcn.00401d41
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.004066de
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00406638
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x88]
push ecx
push 0x20019
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403a37
mov esi, dword [ebp - 0x78]
mov ecx, esi
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00403701
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x28]
mov dword [ebx], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 4], eax
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
call fcn.00407f34
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00401d68
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
push eax
lea ecx, [esi + 0x38]
call fcn.00405eef
mov dword [eax], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
push 0
push 1
call fcn.00401bf8
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403a47
cmp byte [ebp - 0x71], 0
je 0x403a44
push ebx
call fcn.0040b9a6
pop ecx
mov esi, dword [ebp - 0x78]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.00401bf8
jmp 0x4038e1