Function at 0x407fe0
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.0043abe0
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 0x408299
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 0x4080aa
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408299
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 0x4081ce
push 0x2e
push ecx
call fcn.004384f2
add esp, 8
cmp eax, edi
je 0x4081ce
sub eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4081ce
lea ecx, [esp + 0x10]
push ecx
call fcn.00408640
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], edi
jle 0x4081ce
mov eax, edx
push 0x2e
push eax
call fcn.004384f2
add esp, 8
cmp eax, edi
je 0x4081ce
sub eax, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, 0xffffffff
je 0x4081ce
lea ecx, [ebx + 1]
push ecx
push 0x2e
lea ecx, [esp + 0x18]
call fcn.004087a0
mov edi, eax
cmp edi, 0xffffffff
jne 0x408159
lea ebx, [esp + 0x10]
call fcn.004086f0
jmp 0x4081ce
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 0xc]
sub eax, ebx
mov dword [esp + 0x1c], eax
cmp eax, 2
jne 0x408192
mov eax, esi
sub eax, edi
dec eax
cmp eax, 3
je 0x408181
lea ecx, [esp + 0x10]
push ecx
mov eax, edi
call fcn.00408640
lea ebx, [esp + 0x10]
call fcn.004086f0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp eax, 3
jne 0x4081ce
sub esi, edi
dec esi
cmp esi, eax
jne 0x4081b5
lea edx, [esp + 0x10]
push edx
mov eax, ebx
call fcn.00408640
lea ebx, [esp + 0x10]
call fcn.004086f0
jmp 0x4081ce
lea eax, [esp + 0x10]
push eax
mov eax, ebx
call fcn.00408640
lea ecx, [esp + 0x10]
lea eax, [edi - 1]
push ecx
call fcn.00408640
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
cmp ecx, 8
jge 0x408205
mov eax, 8
sub eax, ecx
test eax, eax
jle 0x408205
mov esi, eax
jmp 0x4081f0
push 1
push 0x495984
lea ecx, [esp + 0x18]
call fcn.00404ce0
sub esi, 1
jne 0x4081f0
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 0x408227
push edx
lea ecx, [esp + 0x14]
call fcn.00402350
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.00407de0
or edx, 0xffffffff
mov dword [esp + 0x250], 0xffffffff
cmp eax, 1
mov eax, dword [esp + 0x10]
jne 0x408280
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408279
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40829b
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408299
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.0043675a
mov esp, ebp
pop ebp
ret 4