Function at 0x10002000
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov byte [ebp - 5], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
test eax, eax
je 0x10002039
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
test eax, eax
jne 0x1000203e
jmp 0x10002182
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1000205f
jmp 0x10002182
push 0x1000b714
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.10006146
add esp, 8
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x10002084
jmp 0x10002182
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x100020a8
jmp 0x10002182
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0x10]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x100020c7
jmp 0x10002182
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
and edx, 0xffff
movzx ecx, dx
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
jne 0x10002108
jmp 0x10002182
push 0x1000b714
push 0x80
call fcn.10006146
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000212b
jmp 0x10002182
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0x100084b0
push 0x80
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10002176
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov byte [ebp - 5], 1
xor edx, edx
jne 0x1000201f
cmp dword [ebp - 0x10], 0
je 0x100021a1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0xc], 0
je 0x100021c0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0xc], 0
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret