Function at 0x407ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44796b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x45c5d0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x45c5d0]
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 edi, edi
lea ecx, [esp + 0x31]
push edi
push ecx
mov dword [esp + 0x30], eax
mov byte [esp + 0x38], 0
call fcn.00434d10
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 1
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407d5d
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push str.Version
push eax
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x407b77
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407d5d
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.00401fd0
mov dword [esp + 0x250], edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, edi
jle 0x407c9b
push 0x2e
push ecx
call fcn.00432d4f
add esp, 8
cmp eax, edi
je 0x407c9b
sub eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x407c9b
lea ecx, [esp + 0x10]
push ecx
call fcn.00408030
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], edi
jle 0x407c9b
mov eax, edx
push 0x2e
push eax
call fcn.00432d4f
add esp, 8
cmp eax, edi
je 0x407c9b
sub eax, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, 0xffffffff
je 0x407c9b
lea ecx, [ebx + 1]
push ecx
push 0x2e
lea ecx, [esp + 0x18]
call fcn.00408190
mov edi, eax
cmp edi, 0xffffffff
jne 0x407c26
lea ebx, [esp + 0x10]
call fcn.004080e0
jmp 0x407c9b
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 0xc]
sub eax, ebx
mov dword [esp + 0x1c], eax
cmp eax, 2
jne 0x407c5f
mov eax, esi
sub eax, edi
dec eax
cmp eax, 3
je 0x407c4e
lea ecx, [esp + 0x10]
push ecx
mov eax, edi
call fcn.00408030
lea ebx, [esp + 0x10]
call fcn.004080e0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp eax, 3
jne 0x407c9b
sub esi, edi
dec esi
cmp esi, eax
jne 0x407c82
lea edx, [esp + 0x10]
push edx
mov eax, ebx
call fcn.00408030
lea ebx, [esp + 0x10]
call fcn.004080e0
jmp 0x407c9b
lea eax, [esp + 0x10]
push eax
mov eax, ebx
call fcn.00408030
lea ecx, [esp + 0x10]
lea eax, [edi - 1]
push ecx
call fcn.00408030
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
cmp ecx, 8
jge 0x407cc9
mov eax, 8
sub eax, ecx
test eax, eax
jle 0x407cc9
mov esi, eax
push 1
push 0x44f518
lea ecx, [esp + 0x18]
call fcn.004082e0
sub esi, 1
jne 0x407cb4
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 0x407ceb
push edx
lea ecx, [esp + 0x14]
call fcn.00402390
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.004078b0
or edx, 0xffffffff
mov dword [esp + 0x250], 0xffffffff
cmp eax, 1
mov eax, dword [esp + 0x10]
jne 0x407d44
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x407d5f
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d5d
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.0043164a
mov esp, ebp
pop ebp
ret 4