Function at 0x403d80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fbc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
mov ebx, ecx
push esi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x403de4
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x403dcf
push esi
push 0x414528
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::MakeUpper
push edi
push str..DLL
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x40400d
push edi
push str..OCX
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x40400d
push edi
push str..EXE
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x403e8b
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push edi
push eax
push ecx
push esi
mov ecx, ebx
call fcn.00403bd0
mov ebx, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40403d
test ebx, ebx
push edi
push esi
jne 0x403e77
push 0x4144f8
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x40403d
push 0x4144e0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x40403d
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x403ed9
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403eb5
push esi
push 0x4144c4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f288
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea eax, [edi + 2]
mov dword [ebp + 0x18], 0
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x403f0c
lea ecx, [ebp - 0x24]
push 0x412768
push ecx
mov dword [ebp - 0x24], 1
call sub.MSVCRT.dll__CxxThrowException
push eax
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x403f2f
lea edx, [ebp - 0x28]
push 0x412768
push edx
mov dword [ebp - 0x28], 1
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0x4143b4
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x403f66
lea edx, [ebp - 0x30]
push 0x412768
push edx
mov dword [ebp - 0x30], 1
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
dec eax
je 0x403f83
dec eax
jne 0x403fa6
mov ecx, dword [ebp + 0xc]
push ecx
push esi
mov ecx, ebx
call fcn.00403b40
mov dword [ebp - 0x18], eax
jmp 0x403fa6
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push 0xffffffffffffffff
push eax
push esi
mov ecx, ebx
call fcn.00403bd0
mov dword [ebp - 0x18], eax
jmp 0x403fa6
test edi, edi
mov dword [ebp - 4], 0
je 0x403fba
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403fe8
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x403fd4
mov ecx, dword [ebp + 0x10]
push ecx
push esi
push 0x4144f8
jmp 0x403fde
mov edx, dword [ebp + 0x10]
push edx
push esi
push 0x4144e0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f288
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov ecx, ebx
push eax
push esi
call fcn.00403b40
mov ebx, eax
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x40403d
cmp ebx, edi
push esi
jne 0x40402e
push 0x4144b4
jmp 0x404033
push 0x4144a4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f288
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14