Function at 0x40e740
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4c0068
push 0x497f61
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1704
call fcn.00497d20
mov eax, dword [0x4cc99c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov ebx, edx
mov byte [ebp - 0x16fd], 0
push 0x410
xor esi, esi
push esi
lea eax, [ebp - 0x694]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 4], esi
push 0x410
lea ecx, [ebp - 0x694]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40ea78
mov edx, 0x5a4d
cmp dx, word [ebx]
je 0x40e7d8
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x40ea85
mov eax, dword [ebx + 0x3c]
lea ebx, [ebx + eax*2]
cmp dword [ebx], 0x4550
jne 0x40e7ca
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp - 0x694]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1704], eax
xor edx, edx
mov word [ebp - 0x284], dx
cmp eax, 0xffffffff
je 0x40e86a
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x171c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x1704]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x40e85a
mov edx, dword [ebp - 0x1718]
push edx
mov eax, dword [ebp - 0x171c]
push eax
lea esi, [ebp - 0x284]
call fcn.0040e6c0
add esp, 8
mov ecx, dword [ebp - 0x1704]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
push edx
push str.Module__d_r_n
push edi
call fcn.0040e570
lea eax, [ebp - 0x694]
push eax
push str._s_r_n
push edi
call fcn.0040e570
mov ecx, dword [ebx + 0x50]
push ecx
mov edx, dword [ebx + 0x34]
push edx
push str.Image_Base:_0x_08x__Image_Size:_0x_08x_r_n
push edi
call fcn.0040e570
mov eax, dword [ebx + 8]
push eax
mov ecx, dword [ebx + 0x58]
push ecx
push str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
push edi
call fcn.0040e570
lea edx, [ebp - 0x284]
push edx
push esi
push str.File_Size:____10d__File_Time:___s_r_n
push edi
call fcn.0040e570
add esp, 0x48
push str.Version_Information:_r_n
push edi
call fcn.0040e570
add esp, 8
lea eax, [ebp - 0x694]
push eax
lea ecx, [ebp - 0x16fc]
push ecx
call fcn.0041c4b0
push 0x18f
push 0
lea edx, [ebp - 0x1bc]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x18e
lea eax, [ebp - 0x12c4]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
call esi
lea edx, [ebp - 0x1bc]
push edx
push str.___Company:_____s_r_n
push edi
call fcn.0040e570
push 0x18f
push 0
lea eax, [ebp - 0x1bc]
push eax
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x18e
lea ecx, [ebp - 0xeb4]
push ecx
lea edx, [ebp - 0x1bc]
push edx
call esi
lea eax, [ebp - 0x1bc]
push eax
push str.___Product:_____s_r_n
push edi
call fcn.0040e570
push 0x18f
push 0
lea ecx, [ebp - 0x1bc]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x18e
lea edx, [ebp - 0xaa4]
push edx
lea eax, [ebp - 0x1bc]
push eax
call esi
lea ecx, [ebp - 0x1bc]
push ecx
push str.___FileDesc:____s_r_n
push edi
call fcn.0040e570
add esp, 0xc
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x1714], eax
mov dword [ebp - 0x170c], ecx
cmp eax, 4
jge 0x40e9cf
mov dx, word [ebp + eax*2 - 0x16f4]
mov word [ecx], dx
add ecx, 2
inc eax
jmp 0x40e9ad
movzx eax, word [ebp - 0x22]
push eax
movzx ecx, word [ebp - 0x24]
push ecx
movzx edx, word [ebp - 0x26]
push edx
movzx eax, word [ebp - 0x28]
push eax
push str.___FileVer:_____d._d._d._d_r_n
push edi
call fcn.0040e570
add esp, 0x18
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x1710], eax
mov dword [ebp - 0x1708], ecx
cmp eax, 4
jge 0x40ea18
mov dx, word [ebp + eax*2 - 0x16ec]
mov word [ecx], dx
add ecx, 2
inc eax
jmp 0x40e9f6
movzx eax, word [ebp - 0x22]
push eax
movzx ecx, word [ebp - 0x24]
push ecx
movzx edx, word [ebp - 0x26]
push edx
movzx eax, word [ebp - 0x28]
push eax
push str.___ProdVer:_____d._d._d._d_r_n
push edi
call fcn.0040e570
add esp, 0x18
mov eax, dword [ebp - 0x16fc]
test eax, eax
je 0x40ea4e
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0x16fc], 0
push 0x4adda0
push edi
call fcn.0040e570
add esp, 8
mov byte [ebp - 0x16fd], 1
jmp 0x40ea78
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x16fd]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret