Function at 0x407eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48485b
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.0043aba0
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 0x408169
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 0x407f7a
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408169
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.00401fb0
mov dword [esp + 0x250], edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, edi
jle 0x40809e
push 0x2e
push ecx
call fcn.004384b2
add esp, 8
cmp eax, edi
je 0x40809e
sub eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40809e
lea ecx, [esp + 0x10]
push ecx
call fcn.00408510
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], edi
jle 0x40809e
mov eax, edx
push 0x2e
push eax
call fcn.004384b2
add esp, 8
cmp eax, edi
je 0x40809e
sub eax, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, 0xffffffff
je 0x40809e
lea ecx, [ebx + 1]
push ecx
push 0x2e
lea ecx, [esp + 0x18]
call fcn.00408670
mov edi, eax
cmp edi, 0xffffffff
jne 0x408029
lea ebx, [esp + 0x10]
call fcn.004085c0
jmp 0x40809e
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 0xc]
sub eax, ebx
mov dword [esp + 0x1c], eax
cmp eax, 2
jne 0x408062
mov eax, esi
sub eax, edi
dec eax
cmp eax, 3
je 0x408051
lea ecx, [esp + 0x10]
push ecx
mov eax, edi
call fcn.00408510
lea ebx, [esp + 0x10]
call fcn.004085c0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp eax, 3
jne 0x40809e
sub esi, edi
dec esi
cmp esi, eax
jne 0x408085
lea edx, [esp + 0x10]
push edx
mov eax, ebx
call fcn.00408510
lea ebx, [esp + 0x10]
call fcn.004085c0
jmp 0x40809e
lea eax, [esp + 0x10]
push eax
mov eax, ebx
call fcn.00408510
lea ecx, [esp + 0x10]
lea eax, [edi - 1]
push ecx
call fcn.00408510
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
cmp ecx, 8
jge 0x4080d5
mov eax, 8
sub eax, ecx
test eax, eax
jle 0x4080d5
mov esi, eax
jmp 0x4080c0
push 1
push 0x49596c
lea ecx, [esp + 0x18]
call fcn.00404c40
sub esi, 1
jne 0x4080c0
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 0x4080f7
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.00407cb0
or edx, 0xffffffff
mov dword [esp + 0x250], 0xffffffff
cmp eax, 1
mov eax, dword [esp + 0x10]
jne 0x408150
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408149
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40816b
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408169
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.0043671a
mov esp, ebp
pop ebp
ret 4