Function at 0x407f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4848ab
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x4a55d0]
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.0043abc0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x201
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 0x4081d9
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 0x407fea
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4081d9
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.00401fa0
mov dword [esp + 0x250], edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, edi
jle 0x40810e
push 0x2e
push ecx
call fcn.004384d2
add esp, 8
cmp eax, edi
je 0x40810e
sub eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40810e
lea ecx, [esp + 0x10]
push ecx
call fcn.00408580
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], edi
jle 0x40810e
mov eax, edx
push 0x2e
push eax
call fcn.004384d2
add esp, 8
cmp eax, edi
je 0x40810e
sub eax, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, 0xffffffff
je 0x40810e
lea ecx, [ebx + 1]
push ecx
push 0x2e
lea ecx, [esp + 0x18]
call fcn.004086e0
mov edi, eax
cmp edi, 0xffffffff
jne 0x408099
lea ebx, [esp + 0x10]
call fcn.00408630
jmp 0x40810e
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 0xc]
sub eax, ebx
mov dword [esp + 0x1c], eax
cmp eax, 2
jne 0x4080d2
mov eax, esi
sub eax, edi
dec eax
cmp eax, 3
je 0x4080c1
lea ecx, [esp + 0x10]
push ecx
mov eax, edi
call fcn.00408580
lea ebx, [esp + 0x10]
call fcn.00408630
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp eax, 3
jne 0x40810e
sub esi, edi
dec esi
cmp esi, eax
jne 0x4080f5
lea edx, [esp + 0x10]
push edx
mov eax, ebx
call fcn.00408580
lea ebx, [esp + 0x10]
call fcn.00408630
jmp 0x40810e
lea eax, [esp + 0x10]
push eax
mov eax, ebx
call fcn.00408580
lea ecx, [esp + 0x10]
lea eax, [edi - 1]
push ecx
call fcn.00408580
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
cmp ecx, 8
jge 0x408145
mov eax, 8
sub eax, ecx
test eax, eax
jle 0x408145
mov esi, eax
jmp 0x408130
push 1
push 0x49598c
lea ecx, [esp + 0x18]
call fcn.00404c90
sub esi, 1
jne 0x408130
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 0x408167
push edx
lea ecx, [esp + 0x14]
call fcn.00402360
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.00407d20
or edx, 0xffffffff
mov dword [esp + 0x250], 0xffffffff
cmp eax, 1
mov eax, dword [esp + 0x10]
jne 0x4081c0
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4081db
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081d9
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.00436738
mov esp, ebp
pop ebp
ret 4