Function at 0x4581d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b9fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x76a02c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x18], edi
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
call fcn.004224e0
mov ecx, eax
test ecx, ecx
je 0x4585e9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x20119
push edi
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0044f790
mov edi, dword [ebp - 0x48]
test eax, eax
je 0x458259
xor edi, edi
jmp 0x4585ab
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0x1000
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x1000
or eax, ecx
jge 0x458289
push 0x1000
lea ecx, [ebp - 0x10]
call fcn.0041f730
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
jne 0x4582ea
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
js 0x4585f3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4582d3
push edx
lea ecx, [ebp - 0x10]
call fcn.0041f730
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x458592
push dword [esi - 8]
push esi
call fcn.005418c8
add esp, 8
test eax, eax
js 0x4585f3
cmp eax, dword [esi - 8]
jg 0x4585f3
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [esi - 0xc]
test eax, eax
mov edi, eax
cmovns edi, ecx
lea ebx, [eax + 1]
test ebx, ebx
js 0x4585f3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x45834a
push ebx
lea ecx, [ebp - 0x10]
call fcn.0041f730
mov esi, dword [ebp - 0x10]
mov eax, ebx
sub eax, edi
lea edi, [esi + edi*2]
add eax, eax
push eax
push edi
push eax
lea eax, [edi + 2]
push eax
call fcn.0042a160
mov eax, 0x5c
add esp, 0x10
mov word [edi], ax
cmp ebx, dword [esi - 8]
jg 0x4585f3
mov edi, dword [ebp - 0x18]
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov edx, dword [esi - 0xc]
test edx, edx
mov ebx, edx
cmovns ebx, eax
mov dword [ebp - 0x24], ebx
test edi, edi
je 0x4583a4
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x458393
sub edi, ecx
sar edi, 1
jmp 0x4583a6
xor edi, edi
mov dword [ebp - 0x20], edx
test edi, edi
jle 0x458424
add edx, edi
mov dword [ebp - 0x28], edx
js 0x4585f3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4583d5
push edx
lea ecx, [ebp - 0x10]
call fcn.0041f730
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
sub eax, ebx
lea ebx, [esi + ebx*2]
lea eax, [eax*2 + 2]
push eax
push ebx
push eax
mov eax, dword [ebp - 0x24]
add eax, edi
lea eax, [esi + eax*2]
push eax
call fcn.0042a160
lea edx, [edi + edi]
mov ecx, ebx
mov edi, dword [ebp - 0x18]
push edx
push edi
call fcn.00450c00
push eax
call fcn.004290b0
mov eax, dword [ebp - 0x28]
add esp, 0x1c
cmp eax, dword [esi - 8]
jg 0x4585f3
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x458427
mov edi, dword [ebp - 0x18]
call fcn.004224e0
mov ecx, eax
test ecx, ecx
je 0x4585e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6c], eax
call fcn.004224e0
mov ecx, eax
test ecx, ecx
je 0x4585e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x68], eax
call fcn.004224e0
mov ecx, eax
test ecx, ecx
je 0x4585e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x64], eax
call fcn.004224e0
mov ecx, eax
test ecx, ecx
je 0x4585e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x60], eax
call fcn.004224e0
mov ecx, eax
test ecx, ecx
je 0x4585e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5c], eax
call fcn.004224e0
mov ecx, eax
test ecx, ecx
je 0x4585e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x58], eax
call fcn.004224e0
mov ecx, eax
test ecx, ecx
je 0x4585e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x54], eax
call fcn.00429210
lea ecx, [ebp - 0x68]
call fcn.00429210
lea ecx, [ebp - 0x64]
call fcn.00429210
lea ecx, [ebp - 0x60]
call fcn.00429210
lea ecx, [ebp - 0x5c]
call fcn.00429210
lea ecx, [ebp - 0x58]
call fcn.00429210
lea ecx, [ebp - 0x54]
call fcn.00429210
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x6c]
push eax
mov edx, esi
mov byte [ebp - 4], 2
call fcn.00456be0
add esp, 4
test eax, eax
je 0x458577
push str.wow6432node
push edi
call fcn.0052fa1d
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x6c]
add esp, 8
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 4]
push ecx
cmp dword [ebx + 8], eax
je 0x45856f
mov ecx, eax
call fcn.0045b930
add dword [ebx + 4], 0x24
jmp 0x458577
push eax
mov ecx, ebx
call fcn.0045b680
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
inc ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
call fcn.00458600
mov edi, dword [ebp - 0x48]
jmp 0x45825e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4585c7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4585d5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004222a0
push 0x80070057
call fcn.004222a0
int3