Function at 0x405a33
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xb0
mov eax, 0x571fb4
call fcn.00545eb8
mov ebx, ecx
mov dword [ebp - 0x7c], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp + 0xc]
xor esi, esi
push esi
push 0x104
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x8c], esi
call fcn.004080f4
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00403ae0
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x94]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00402d20
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x405caa
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x75], al
call fcn.00402d20
mov ecx, eax
call fcn.0040a1be
lea ecx, [ebp - 0x2c]
call fcn.00402d20
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402e40
mov byte [ebp - 4], 2
lea eax, [ebp - 0x5c]
push eax
lea edi, [ebx + 0x38]
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xa0], edi
push eax
mov ecx, edi
call fcn.0040845e
mov ebx, dword [ebp - 0x9c]
cmp ebx, dword [edi]
je 0x405b23
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00409425
test eax, eax
jns 0x405b25
mov ebx, dword [edi]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00402d80
cmp ebx, dword [edi]
je 0x405b58
mov ebx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebx + 4]
ja 0x405bb1
jb 0x405c9e
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebx]
ja 0x405bb1
jmp 0x405c9e
push 0x20
call fcn.00414956
mov ebx, eax
pop ecx
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x405b89
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 0x405b8b
xor ebx, ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x405c9e
mov esi, dword [ebp + 0x10]
mov edi, ebx
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.00402e40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
push 0x5bac10
call fcn.00402d30
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004037a0
lea eax, [ebp - 0x88]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x44]
call fcn.00402d20
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405c82
mov ecx, dword [ebp - 0x7c]
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00405979
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x2c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x90]
mov dword [ebx + 4], eax
call fcn.00402d20
mov ecx, eax
call fcn.0040a1be
lea ecx, [ebp - 0x2c]
call fcn.00402d20
push eax
lea ecx, [ebp - 0x74]
call fcn.00402e40
mov byte [ebp - 4], 5
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.004094b4
mov eax, dword [ebp - 0xb0]
mov dword [eax + 0x28], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.00402d80
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405c92
cmp byte [ebp - 0x75], 0
je 0x405c92
push 0x20
push ebx
call fcn.00545b30
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00402d80
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x84]
inc esi
mov dword [ebp - 0x8c], esi
test eax, eax
je 0x405a8a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402d80
call fcn.00545e62
ret 0xc