Function at 0x1000c530
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x10045018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x444], ecx
test ecx, ecx
je 0x1000c7fe
test esi, esi
je 0x1000c7fe
mov eax, dword [ecx + 8]
or eax, dword [ecx + 4]
or eax, dword [ecx]
jne 0x1000c7f7
push 0x206
push eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x424], eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x42c], xmm0
call sub.MSVCR110.dll_memset
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 0xc
mov dword [ebp - 0x458], 0x10037b8c
mov dword [ebp - 0x454], str.iSvc2.dll
mov dword [ebp - 0x450], str.iSafeTHlp.exe
mov dword [ebp - 0x44c], str.iStart.exe
mov dword [ebp - 0x448], str.uninstall.exe
xor edi, edi
jmp 0x1000c600
push dword [ebp + edi*4 - 0x458]
lea eax, [ebp - 0x218]
push esi
push 0x10035f44
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x14
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x434], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x1000c70c
cmp eax, 0x100000
ja 0x1000c70c
push eax
call fcn.1002d1e2
mov esi, eax
add esp, 4
test esi, esi
je 0x1000c706
push esi
push dword [ebp - 0x43c]
lea eax, [ebp - 0x218]
push dword [ebp - 0x434]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1000c700
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x438]
push eax
push 0x10035d40
push esi
mov dword [ebp - 0x438], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1000c700
mov ecx, dword [ebp - 0x438]
test ecx, ecx
je 0x1000c700
movzx eax, word [ecx + 0xa]
mov dword [ebp - 0x430], eax
movzx eax, word [ecx + 8]
mov dword [ebp - 0x42c], eax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x428], eax
movzx eax, word [ecx + 0xc]
push esi
mov dword [ebp - 0x424], eax
call ebx
mov eax, dword [ebp - 0x428]
or eax, dword [ebp - 0x42c]
add esp, 4
or eax, dword [ebp - 0x430]
jne 0x1000c716
jmp 0x1000c706
push esi
call ebx
add esp, 4
mov esi, dword [ebp - 0x440]
inc edi
cmp edi, 5
jb 0x1000c600
mov eax, dword [ebp - 0x428]
or eax, dword [ebp - 0x42c]
or eax, dword [ebp - 0x430]
je 0x1000c7fe
mov esi, dword [ebp - 0x444]
push 0x10
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.MSVCR110.dll_memmove]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
mov dword [esi + 0xc], 0
call sub.MSVCR110.dll_memset
push dword [ebp - 0x428]
mov esi, dword [sym.imp.MSVCR110.dll_swprintf_s]
push dword [ebp - 0x42c]
lea eax, [ebp - 0x420]
push dword [ebp - 0x430]
push str._u._u._u
push 0x104
push eax
call esi
push str.main
push dword [ebp - 0x440]
lea eax, [ebp - 0x218]
push 0x10035f44
push 0x104
push eax
call esi
add esp, 0x44
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x45c]
call fcn.10008d80
sub esp, 0x18
lea eax, [ebp - 0x420]
mov ecx, esp
push eax
mov dword [ebp - 4], 0
call fcn.10008d80
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.iImportLib.dll_bool___cdecl_elex::func::WriteMainFileVersion_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___]
add esp, 0x1c
lea ecx, [ebp - 0x45c]
call fcn.10008e90
mov eax, 1
jmp 0x1000c800
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret