Function at 0x405540
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c390
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x449b88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x4055d1
call dword [sym.imp.ACE.dll_public:_static_int___cdecl_ACE_Log_Msg::last_error_adapter_void_]
mov edi, eax
call dword [sym.imp.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_]
push edi
push 0
mov esi, eax
push 0xa7
push str.VerifyFile.cpp
mov ecx, esi
call dword [sym.imp.ACE.dll_public:_void___thiscall_ACE_Log_Msg::conditional_set_char_const___int__int__int_]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__t___D____M___I_GetAppVersion:_GetFileVersionInfoSize_return_with__d_error._n
push 4
push esi
call dword [sym.imp.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__]
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov dword [ebp - 4], 0
call fcn.00428923
add esp, 4
mov esi, eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
push edi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x405655
call dword [sym.imp.ACE.dll_public:_static_int___cdecl_ACE_Log_Msg::last_error_adapter_void_]
mov ebx, eax
call dword [sym.imp.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_]
push ebx
push 0
mov edi, eax
push 0xb7
push str.VerifyFile.cpp
mov ecx, edi
call dword [sym.imp.ACE.dll_public:_void___thiscall_ACE_Log_Msg::conditional_set_char_const___int__int__int_]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__t___D____M___I_GetAppVersion:_GetFileVersionInfo_return_with__d_error._n
push 4
push edi
call dword [sym.imp.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x434d0c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40577e
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0xa]
mov edi, dword [ebp + 0xc]
mov word [ebx], cx
mov dx, word [eax + 8]
mov word [edi], dx
movzx ecx, word [eax + 0xe]
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp + 0x14]
push esi
mov word [ecx], ax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
movzx eax, word [ebx]
add esp, 4
test ax, ax
je 0x405734
mov edx, 0x270f
cmp ax, dx
ja 0x405734
mov eax, edx
cmp word [edi], ax
ja 0x405734
mov edx, dword [ebp + 0x10]
mov ecx, eax
cmp word [edx], cx
ja 0x405734
mov ecx, dword [ebp + 0x14]
cmp word [ecx], ax
ja 0x405734
call dword [sym.imp.ACE.dll_public:_static_int___cdecl_ACE_Log_Msg::last_error_adapter_void_]
mov edi, eax
call dword [sym.imp.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_]
push edi
push 0
mov esi, eax
push 0xca
push str.VerifyFile.cpp
mov ecx, esi
call dword [sym.imp.ACE.dll_public:_void___thiscall_ACE_Log_Msg::conditional_set_char_const___int__int__int_]
mov edx, dword [ebp + 0x14]
movzx eax, word [edx]
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
push eax
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
push edx
movzx edx, word [ebx]
push ecx
push edx
push str.__t___D____M___I_GetAppVersion:_Got_version:__d._d._d._d_n
push 4
push esi
call dword [sym.imp.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__]
add esp, 0x1c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ACE.dll_public:_static_int___cdecl_ACE_Log_Msg::last_error_adapter_void_]
mov edi, eax
call dword [sym.imp.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_]
push edi
push 0
mov esi, eax
push 0xc5
push str.VerifyFile.cpp
mov ecx, esi
call dword [sym.imp.ACE.dll_public:_void___thiscall_ACE_Log_Msg::conditional_set_char_const___int__int__int_]
push str.__t___D____M___I_GetAppVersion:_Got_out_of_bound_values._n
push 4
push esi
call dword [sym.imp.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__]
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ACE.dll_public:_static_int___cdecl_ACE_Log_Msg::last_error_adapter_void_]
mov ebx, eax
call dword [sym.imp.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_]
push ebx
push 0
mov edi, eax
push 0xd0
push str.VerifyFile.cpp
mov ecx, edi
call dword [sym.imp.ACE.dll_public:_void___thiscall_ACE_Log_Msg::conditional_set_char_const___int__int__int_]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__t___D____M___I_GetAppVersion:_VerQueryValue_return_with__d_error._n
jmp 0x40562e