Function at 0x408f60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b61f8
mov eax, dword fs:[0]
push eax
sub esp, 0x3fc
mov eax, dword [0x504e20]
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 eax, dword [ebp + 0x10]
mov dword [ebp - 0x404], eax
xor ebx, ebx
cmp byte [0x5062f8], bl
mov dword [ebp - 4], 1
sete bl
add ebx, 0x80000001
call fcn.0040a250
test al, al
jne 0x408fd6
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3e4], eax
mov byte [ebp - 4], 2
call fcn.0040a250
test al, al
jne 0x409065
xor eax, eax
push 0x3c6
push eax
mov word [ebp - 0x3d8], ax
lea eax, [ebp - 0x3d6]
push eax
call fcn.004980c0
add esp, 0xc
xor edi, edi
xor esi, esi
jmp 0x409020
xor eax, eax
test edi, edi
je 0x40904a
test eax, eax
je 0x40904a
lea ecx, [esi + eax]
lea edx, [ebp - 0x3d8]
lea edx, [edx + ecx*2]
lea ecx, [esi + eax]
mov cx, word [ebp + ecx*2 - 0x404]
inc cx
add cx, word [edx - 2]
mov word [edx], cx
inc eax
cmp eax, 0x16
jl 0x409022
add esi, 0x16
inc edi
cmp esi, 0x1e4
jl 0x409020
movsx eax, word [ebp - 0x12]
mov dword [0x506280], eax
or edi, 0xffffffff
cmp byte [ebp + 0x14], 0
je 0x409107
call fcn.0040a280
test al, al
jne 0x40909b
lea eax, [edi + 0x40]
mov esi, 0xff
test esi, esi
je 0x409094
cdq
idiv esi
mov ecx, esi
mov eax, ecx
mov esi, edx
test ecx, ecx
jne 0x409083
add eax, esi
mov dword [0x506280], eax
cmp byte [0x50002c], 0
jne 0x409107
mov eax, dword [0x506398]
cmp dword [eax - 0xc], 0
jne 0x4090b6
mov ebx, SysReAllocStringLen
jmp 0x409107
push 0x4c2064
lea eax, [ebp - 0x3e0]
push 0x506398
push eax
mov ebx, VariantInit
call fcn.00402930
add esp, 0xc
push eax
lea ecx, [ebp - 0x3e4]
mov byte [ebp - 4], 3
call fcn.00402500
mov edx, dword [ebp - 0x3e0]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409107
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x400], 0
mov dword [ebp - 0x3fc], 0
mov dword [ebp - 0x3f8], 0
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
mov byte [ebp - 4], 4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3e0], eax
mov eax, 0x4c20cc
mov byte [ebp - 4], 5
test eax, 0xffff0000
jne 0x409170
movzx esi, ax
push 0
push esi
call fcn.00402da0
add esp, 8
test eax, eax
je 0x409180
push esi
push eax
lea ecx, [ebp - 0x3e0]
call fcn.00406900
jmp 0x409180
push 0x4c20cc
lea ecx, [ebp - 0x3e0]
call fcn.00402600
lea eax, [ebp - 0x3e0]
push eax
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x3e8]
push eax
mov byte [ebp - 4], 6
call fcn.00402870
push 0x50639c
push eax
lea eax, [ebp - 0x3ec]
push eax
mov byte [ebp - 4], 7
call fcn.00402870
push 0x4c2064
push eax
lea eax, [ebp - 0x3f4]
push eax
mov byte [ebp - 4], 8
call fcn.00402930
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x408]
push eax
mov byte [ebp - 4], 9
call fcn.00402870
add esp, 0x30
lea ecx, [ebp - 0x400]
push 0x20019
push dword [eax]
push ebx
call fcn.00409620
mov edx, dword [ebp - 0x408]
test eax, eax
setne bl
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409219
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3f4]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40923c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3ec]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40925f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3e8]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409282
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3e0]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4092a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x400]
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x409320
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x3ec]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x3f0], 0
push esi
mov dword [ebp - 0x3e8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409317
cmp dword [ebp - 0x3ec], 4
jne 0x409317
test esi, esi
je 0x409300
push esi
call ebx
xor esi, esi
mov ecx, dword [ebp - 0x404]
mov eax, dword [ebp - 0x3f0]
mov dword [ecx], eax
mov byte [ebp - 0x3d9], 1
jmp 0x409327
test esi, esi
je 0x409320
push esi
call ebx
xor esi, esi
mov byte [ebp - 0x3d9], 0
test esi, esi
je 0x40932e
push esi
call ebx
mov edx, dword [ebp - 0x3e4]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409351
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409371
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x409392
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x3d9]
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.00496d64
mov esp, ebp
pop ebp
ret