Function at 0x40f620
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fa05
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x47c078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xa0], ebx
push 0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x98]
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x9c], 0
push eax
push 0
push 0
push 0
push dword [ebx + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x98], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40f8df
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], 1
test eax, eax
je 0x40f6e7
cmp eax, 0xaaaaaaa
ja 0x40f8fb
push eax
mov ecx, esi
call fcn.0040f460
lea eax, [ebp - 0x81]
push eax
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x90]
inc eax
push eax
call fcn.0040eb70
mov dword [ebp - 4], 1
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
sub ecx, eax
sar ecx, 1
push ecx
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, eax
test ecx, ecx
jne 0x40f810
mov ecx, dword [ebp - 0x90]
push str.UTF_8
sub esp, 8
mov edx, esp
lea ebx, [ecx + 2]
mov dword [edx], ecx
jmp 0x40f750
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f750
sub ecx, ebx
lea eax, [ebp - 0x28]
sar ecx, 1
push eax
mov dword [edx + 4], ecx
call fcn.0045c6f0
add esp, 0x10
mov ecx, eax
mov edx, dword [esi + 4]
mov byte [ebp - 4], 2
cmp dword [esi + 8], edx
je 0x40f7c3
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x14], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
add dword [esi + 4], 0x18
jmp 0x40f7cc
push ecx
push edx
mov ecx, esi
call fcn.00404c90
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40f804
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f7fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f900
push edx
push ecx
call fcn.0042777b
add esp, 8
mov ebx, dword [ebp - 0xa0]
inc edi
jmp 0x40f710
cmp ecx, 0x103
je 0x40f854
cmp ecx, 0xea
jne 0x40f849
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x90]
sar eax, 1
cmp eax, 0x105
jae 0x40f849
lea ecx, [ebp - 0x90]
add eax, eax
push ecx
push eax
call fcn.0040e6f0
jmp 0x40f710
push 0x463c7c
push ecx
jmp 0x40f8e5
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x40f886
mov eax, dword [esi]
cmp eax, ecx
jne 0x40f86b
mov ecx, esi
call fcn.004072f0
jmp 0x40f886
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.0040f460
mov edx, dword [ebp - 0x90]
test edx, edx
je 0x40f8bf
mov ecx, dword [ebp - 0x88]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x40f8b5
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f900
push ecx
push edx
call fcn.0042777b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427a1e
mov esp, ebp
pop ebp
ret 4
push 0x463c68
push eax
lea ecx, [ebp - 0x80]
call fcn.00409380
push 0x4770ac
lea eax, [ebp - 0x80]
push eax
call fcn.0043e7a0
call fcn.004034e0
call fcn.004432c6
int3