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

Disassembly:
push 0xbb0
push 0x424ed8
call fcn.004119f8
mov eax, dword [0x42eb80]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xbb0], esi
xor ebx, ebx
mov byte [ebp - 0xba1], bl
push 0x208
push ebx
lea eax, [ebp - 0x358]
push eax
call fcn.0040f650
add esp, 0xc
mov dword [ebp - 4], ebx
push 0x206
lea eax, [ebp - 0x358]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x40811e
mov dword [ebp - 0xbc0], esi
cmp word [esi], 0x5a4d
jne 0x407f0e
mov esi, dword [esi + 0x3c]
add esi, dword [ebp - 0xbb0]
mov dword [ebp - 0xbbc], esi
cmp dword [esi], 0x4550
je 0x407f19
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x408129
push ebx
push 0x80
push 3
push ebx
push 1
push connect
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xbac], eax
mov byte [ebp - 0x150], bl
mov dword [ebp - 0xba8], ebx
cmp eax, 0xffffffff
je 0x407f9b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xba8], eax
lea eax, [ebp - 0xbb8]
push eax
push ebx
push ebx
push dword [ebp - 0xbac]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x407f8f
push dword [ebp - 0xbb4]
push dword [ebp - 0xbb8]
lea eax, [ebp - 0x150]
push eax
call fcn.00407a82
add esp, 0xc
push dword [ebp - 0xbac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
push str.Module__d_r_n
push edi
call fcn.00406862
lea eax, [ebp - 0x358]
push eax
push str._s_r_n
push edi
call fcn.00406862
push dword [esi + 0x50]
push dword [esi + 0x34]
push str.Image_Base:_0x_08x__Image_Size:_0x_08x_r_n
push edi
call fcn.00406862
push dword [esi + 8]
push dword [esi + 0x58]
push str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
push edi
call fcn.00406862
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0xba8]
push str.File_Size:____10d__File_Time:___s_r_n
push edi
call fcn.00406862
add esp, 0x48
push str.Version_Information:_r_n
push edi
call fcn.00406862
pop ecx
pop ecx
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00405a50
mov esi, 0xc7
push esi
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xba0]
call fcn.004057a4
lea eax, [ebp - 0xec]
push eax
push str.___Company:_____s_r_n
push edi
call fcn.00406862
add esp, 0xc
push esi
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xba0]
call fcn.0040581e
lea eax, [ebp - 0xec]
push eax
push str.___Product:_____s_r_n
push edi
call fcn.00406862
add esp, 0xc
push esi
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xba0]
call fcn.004057e1
lea eax, [ebp - 0xec]
push eax
push str.___FileDesc:____s_r_n
push edi
call fcn.00406862
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00405766
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
push str.___FileVer:_____d._d._d._d_r_n
push edi
call fcn.00406862
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00405785
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
push str.___ProdVer:_____d._d._d._d_r_n
push edi
call fcn.00406862
add esp, 0x18
lea ecx, [ebp - 0xba0]
call fcn.00405751
push 0x424540
push edi
call fcn.00406862
pop ecx
pop ecx
mov byte [ebp - 0xba1], 1
jmp 0x40811e
or dword [ebp - 4], 0xffffffff
movzx eax, byte [ebp - 0xba1]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040f6e1
call fcn.00411a33
ret