Function at 0x412040
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609e0c
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x350], 0
lea ecx, [ebp - 0x240]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push 0
lea ecx, [ebp - 0x222]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x4120d5
call fcn.004188d0
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
push eax
call fcn.004188d0
push eax
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.MSVCR90.dll_wcsncpy]
add esp, 0xc
jmp 0x4120f2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x18], 0
push 0
lea edx, [ebp - 0x224]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047ce38
add esp, 4
mov dword [ebp - 0x348], eax
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x412200
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x616e6c
mov eax, dword [ebp - 0x18]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412200
mov byte [ebp - 0x344], 0
push 0xff
push 0
lea ecx, [ebp - 0x343]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
push str._u._u._u._u
push 0xff
lea edx, [ebp - 0x344]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x240]
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__::append_char_const__]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34c], ecx
mov edx, dword [ebp - 0x34c]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [ebp - 0x350]
or ecx, 1
mov dword [ebp - 0x350], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret