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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x449b88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 0x22
mov ebx, 0x104
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x32c]
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x33c], edi
mov dword [ebp - 0x318], 0xf
mov dword [ebp - 0x31c], edi
mov byte [ebp - 0x32c], 0
call fcn.00401b80
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415ec3
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x32c]
call fcn.00401910
mov eax, dword [ebp - 0x32c]
mov esi, 0x10
cmp dword [ebp - 0x318], esi
jae 0x415ef2
lea eax, [ebp - 0x32c]
lea ecx, [ebp - 0x330]
push ecx
push 1
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x415f24
cmp dword [ebp - 0x318], esi
jb 0x4160a7
mov edx, dword [ebp - 0x32c]
push edx
jmp 0x41609f
mov edx, dword [ebp - 0x330]
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x108]
push ecx
push edi
push edi
push str.ImagePath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416083
cmp dword [ebp - 0x334], ebx
ja 0x416083
mov eax, dword [ebp - 0x330]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x108], 0x22
jne 0x415f8d
lea ebx, [ebp - 0x107]
mov ecx, ebx
push 0x22
push ecx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
cmp eax, edi
je 0x415f93
mov byte [eax], 0
jmp 0x415f93
lea ebx, [ebp - 0x108]
lea edx, [ebp - 0x33c]
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x415fc8
push edi
call fcn.00428923
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x415fd8
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [ebp - 0x32c]
call fcn.00401150
jmp 0x4160a7
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x338]
push ecx
push 0x434d0c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x415fbf
cmp dword [ebp - 0x340], 0
je 0x415fbf
mov eax, dword [ebp - 0x338]
movzx edx, word [eax + 0x14]
movzx ecx, word [eax + 0x16]
push edx
movzx edx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push edx
push eax
push 0x432f70
lea ecx, [ebp - 0x310]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 0x20
lea edx, [ebp - 0x310]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
jne 0x416053
push 0x8007000e
call fcn.004026e0
mov ecx, dword [ebp - 0x344]
push 0
mov dword [ecx], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x32c]
call fcn.00401150
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a52
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x330]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x318], esi
jb 0x4160a7
mov eax, dword [ebp - 0x32c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x80004005
pop ebx
call fcn.00428a52
mov esp, ebp
pop ebp
ret 0xc