Function at 0x42f850
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a022
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x457dd4
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, dword [ebp + 0xc]
add esp, 4
mov esi, eax
mov ecx, edi
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x42f8be
mov eax, dword [edi + 4]
push esi
push 0x457dd4
push eax
call fcn.00401270
mov eax, dword [edi + 4]
mov dword [edi + 8], esi
add esp, 0xc
mov word [eax + esi*2], bx
lea esi, [eax + esi*2]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x42f8e9
lea edx, [ebp - 0x24]
push 0x450c60
push edx
mov dword [ebp - 0x24], 0x199
call sub.MSVCRT.dll__CxxThrowException
push esi
call fcn.0043c870
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x42f90e
lea eax, [ebp - 0x28]
push 0x450c60
push eax
mov dword [ebp - 0x28], 0x19f
call sub.MSVCRT.dll__CxxThrowException
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x18]
push ecx
push edx
push 0x4553bc
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42f958
lea ecx, [ebp - 0x30]
push 0x450c60
push ecx
mov dword [ebp - 0x30], 0x1aa
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [eax + 0xc]
xor edx, edx
mov dx, word [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
lea ecx, [ebp - 0x40]
push str._d._d._d._d
push ecx
call fcn.00425f80
add esp, 0x18
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [ebp - 4], 1
mov ecx, dword [edx]
push ecx
push 0
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x42f9c6
mov al, byte [ecx - 1]
test al, al
je 0x42f9ba
cmp al, 0xff
je 0x42f9ba
dec al
mov byte [ecx - 1], al
jmp 0x42f9c6
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x42fa66
push 0x457dd4
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
mov ecx, edi
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x42fa1c
mov eax, dword [edi + 4]
mov edx, esi
mov ecx, 0x457dd4
test edx, edx
jbe 0x42fa0d
mov bx, word [ecx]
add ecx, 2
mov word [eax], bx
add eax, 2
dec edx
jmp 0x42f9fa
mov edx, dword [edi + 4]
mov dword [edi + 8], esi
mov word [edx + esi*2], 0
lea esi, [edx + esi*2]
mov ecx, dword [ebp - 0x18]
xor eax, eax
lea edx, [ebp - 0x40]
mov ax, word [ecx + 0xc]
push eax
push str._04d
push edx
call fcn.00425f80
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [ebp - 4], 2
mov edx, dword [ecx]
mov ecx, edi
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x42fa66
mov al, byte [ecx - 1]
test al, al
je 0x42fa8a
cmp al, 0xff
je 0x42fa8a
dec al
mov byte [ecx - 1], al
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42fa76
push eax
call fcn.0043c8a0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
jmp 0x42fa66