Function at 0x4eff50
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x7f8]
call fcn.00411600
mov dword [ebp - 4], 0x104
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x420], 0
mov eax, dword [ebp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServices_s
push 0x400
lea ecx, [ebp - 0x408]
push ecx
call fcn.005a0885
add esp, 0x10
lea edx, [ebp - 0x410]
push edx
push 1
push 0
lea eax, [ebp - 0x408]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
je 0x4efff2
mov dword [ebp - 0x804], 0x80004005
lea ecx, [ebp - 0x7f8]
call fcn.00409d00
mov eax, dword [ebp - 0x804]
jmp 0x4f02b3
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x7d0]
push edx
push 0
push 0
push str.ImagePath
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
jne 0x4f002b
cmp dword [ebp - 4], 0x104
jbe 0x4f0058
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x808], 0x80004005
lea ecx, [ebp - 0x7f8]
call fcn.00409d00
mov eax, dword [ebp - 0x808]
jmp 0x4f02b3
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx eax, byte [ebp - 0x7d0]
cmp eax, 0x22
jne 0x4f00a8
lea ecx, [ebp - 0x7cf]
mov dword [ebp - 0x7d4], ecx
push 0x22
mov edx, dword [ebp - 0x7d4]
push edx
call fcn.0040dc10
add esp, 8
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x4f00a6
mov eax, dword [ebp - 0x414]
mov byte [eax], 0
jmp 0x4f00b4
lea ecx, [ebp - 0x7d0]
mov dword [ebp - 0x7d4], ecx
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp - 0x7d4]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x7d8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x7d8], 0
jne 0x4f0102
mov dword [ebp - 0x80c], 0x80004005
lea ecx, [ebp - 0x7f8]
call fcn.00409d00
mov eax, dword [ebp - 0x80c]
jmp 0x4f02b3
mov ecx, dword [ebp - 0x7d8]
push ecx
call fcn.0059cee6
add esp, 4
mov dword [ebp - 0x810], eax
mov edx, dword [ebp - 0x810]
mov dword [ebp - 0x420], edx
mov eax, dword [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x7d8]
push ecx
push 0
mov edx, dword [ebp - 0x7d4]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4f017e
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x814]
push ecx
call fcn.005a03f1
add esp, 4
mov dword [ebp - 0x818], 0x80004005
lea ecx, [ebp - 0x7f8]
call fcn.00409d00
mov eax, dword [ebp - 0x818]
jmp 0x4f02b3
lea edx, [ebp - 0x7dc]
push edx
lea eax, [ebp - 0x800]
push eax
push 0x609b28
mov ecx, dword [ebp - 0x420]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4f01aa
cmp dword [ebp - 0x7dc], 0
jne 0x4f01e5
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x81c]
push eax
call fcn.005a03f1
add esp, 4
mov dword [ebp - 0x820], 0x80004005
lea ecx, [ebp - 0x7f8]
call fcn.00409d00
mov eax, dword [ebp - 0x820]
jmp 0x4f02b3
mov ecx, dword [ebp - 0x800]
mov edx, dword [ecx + 0x14]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x800]
mov edx, dword [ecx + 0x14]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x800]
mov edx, dword [ecx + 0x10]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x800]
mov edx, dword [ecx + 0x10]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
push 0x609b2c
push 0x104
lea ecx, [ebp - 0x628]
push ecx
call fcn.005a8826
add esp, 0x1c
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x824], edx
mov eax, dword [ebp - 0x824]
push eax
call fcn.005a03f1
add esp, 4
lea ecx, [ebp - 0x628]
push ecx
lea ecx, [ebp - 0x7fc]
call fcn.004f25f0
lea ecx, [ebp - 0x7fc]
call fcn.004d7ae0
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [ebp - 0x828], 0
lea ecx, [ebp - 0x7fc]
call fcn.0040a3b0
lea ecx, [ebp - 0x7f8]
call fcn.00409d00
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret 0xc