Function at 0x40b319
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xa8
mov eax, 0x450ce5
call fcn.0042c0a7
mov edi, ecx
mov dword [ebp - 0x7c], edi
mov eax, dword [ebp + 8]
xor ecx, ecx
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x1c], ecx
push ecx
mov dword [ebp - 0xa4], eax
xor eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x2c]
push 0x104
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0040de98
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 1
jmp 0x40b38c
xor edx, edx
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x18], 8
push ecx
push edx
push edx
push edx
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x98]
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x84], eax
test eax, eax
jne 0x40b5aa
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x75], al
cmovae ecx, dword [ebp - 0x2c]
call fcn.0040eb4a
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00403e25
mov byte [ebp - 4], 2
lea eax, [ebp - 0x5c]
push eax
add edi, 0x38
lea eax, [ebp - 0x9c]
push eax
mov ecx, edi
mov dword [ebp - 0xa0], edi
call fcn.0040de63
mov ebx, dword [ebp - 0x9c]
cmp ebx, dword [edi]
je 0x40b428
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004084e0
test eax, eax
jns 0x40b42a
mov ebx, dword [edi]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
push 0
push 1
call fcn.00406923
cmp ebx, dword [edi]
je 0x40b461
mov ebx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebx + 4]
ja 0x40b4aa
jb 0x40b59b
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebx]
ja 0x40b4aa
jmp 0x40b59b
push 0x20
call fcn.0042b6d1
mov ebx, eax
pop ecx
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 4], 3
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
mov byte [ebp - 4], 1
mov edi, ebx
mov esi, dword [ebp + 0x10]
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x8c]
mov edi, dword [ebp - 0xa0]
mov byte [ebp - 0x75], 1
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x44]
call fcn.00403e25
mov byte [ebp - 4], 4
push 0x468974
call fcn.004061c6
pop ecx
push eax
push 0x468974
lea ecx, [ebp - 0x44]
call fcn.00403e56
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00403efa
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x80]
push ecx
push 0x20019
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b57b
mov ecx, dword [ebp - 0x7c]
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x80]
call fcn.0040b255
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x2c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x90]
mov dword [ebx + 4], eax
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
call fcn.0040eb4a
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x74]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00403e25
mov byte [ebp - 4], 5
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
call fcn.0040dc0f
mov dword [eax], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
push 0
push 1
call fcn.00406923
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b58b
cmp byte [ebp - 0x75], 0
je 0x40b58b
push 0x20
push ebx
call fcn.0042b704
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
push 0
push 1
call fcn.00406923
mov edi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
inc esi
mov dword [ebp - 0x8c], esi
test eax, eax
je 0x40b38a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call fcn.0040dcbe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.00406923
call fcn.0042c051
ret 0xc