Function at 0x4065c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44719b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x45c5b0]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x103
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x31]
push ebx
push ecx
mov dword [esp + 0x30], eax
mov edi, edx
mov byte [esp + 0x38], 0
call fcn.00434290
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 1
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40686b
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
push edi
push eax
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x406685
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40686b
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.00401fc0
mov dword [esp + 0x250], ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jle 0x4067a9
push 0x2e
push ecx
call fcn.004321ff
add esp, 8
cmp eax, ebx
je 0x4067a9
sub eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4067a9
lea ecx, [esp + 0x10]
push ecx
call fcn.00406f60
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], ebx
jle 0x4067a9
mov eax, edx
push 0x2e
push eax
call fcn.004321ff
add esp, 8
cmp eax, ebx
je 0x4067a9
sub eax, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, 0xffffffff
je 0x4067a9
lea ecx, [ebx + 1]
push ecx
push 0x2e
lea ecx, [esp + 0x18]
call fcn.004070c0
mov edi, eax
cmp edi, 0xffffffff
jne 0x406734
lea ebx, [esp + 0x10]
call fcn.00407010
jmp 0x4067a9
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 0xc]
sub eax, ebx
mov dword [esp + 0x1c], eax
cmp eax, 2
jne 0x40676d
mov eax, esi
sub eax, edi
dec eax
cmp eax, 3
je 0x40675c
lea ecx, [esp + 0x10]
push ecx
mov eax, edi
call fcn.00406f60
lea ebx, [esp + 0x10]
call fcn.00407010
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp eax, 3
jne 0x4067a9
sub esi, edi
dec esi
cmp esi, eax
jne 0x406790
lea edx, [esp + 0x10]
push edx
mov eax, ebx
call fcn.00406f60
lea ebx, [esp + 0x10]
call fcn.00407010
jmp 0x4067a9
lea eax, [esp + 0x10]
push eax
mov eax, ebx
call fcn.00406f60
lea ecx, [esp + 0x10]
lea eax, [edi - 1]
push ecx
call fcn.00406f60
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
cmp ecx, 8
jge 0x4067d7
mov eax, 8
sub eax, ecx
test eax, eax
jle 0x4067d7
mov esi, eax
push 1
push 0x44e600
lea ecx, [esp + 0x18]
call fcn.00407210
sub esi, 1
jne 0x4067c2
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x4067f9
push edx
lea ecx, [esp + 0x14]
call fcn.00402380
mov esi, dword [esp + 0x24]
mov ecx, 0x41
lea edi, [esp + 0x134]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x134]
call fcn.004063c0
or edx, 0xffffffff
mov dword [esp + 0x250], 0xffffffff
cmp eax, 1
mov eax, dword [esp + 0x10]
jne 0x406852
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40684b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40686d
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40686b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00430bec
mov esp, ebp
pop ebp
ret 4