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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4211c8
push 0x413444
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xba8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov byte [ebp - 0x1c], bl
push 0x208
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.004109d0
add esp, 0xc
mov dword [ebp - 4], ebx
push 0x206
lea eax, [ebp - 0x224]
push eax
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jbe 0x40b71b
mov dword [ebp - 0xba8], edi
cmp word [edi], 0x5a4d
jne 0x40b4e9
mov esi, dword [edi + 0x3c]
add esi, edi
mov dword [ebp - 0xbb0], esi
cmp dword [esi], 0x4550
je 0x40b4f4
or dword [ebp - 4], 0xffffffff
xor al, al
jmp 0x40b722
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
mov dword [ebp - 0xbac], edi
mov byte [ebp - 0xba4], bl
mov dword [ebp - 0x2f8], ebx
cmp edi, 0xffffffff
je 0x40b56e
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0xbb8]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
test eax, eax
je 0x40b567
push dword [ebp - 0xbb4]
push dword [ebp - 0xbb8]
lea eax, [ebp - 0xba4]
push eax
call fcn.0040b731
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0x10]
push str.Module__d_r_n
mov edi, dword [ebp + 8]
push edi
call fcn.0040b2b2
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push str._s_r_n
push edi
call fcn.0040b2b2
add esp, 0xc
push dword [esi + 0x50]
push dword [esi + 0x34]
push str.Image_Base:_0x_08x__Image_Size:_0x_08x_r_n
push edi
call fcn.0040b2b2
add esp, 0x10
push dword [esi + 8]
push dword [esi + 0x58]
push str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
push edi
call fcn.0040b2b2
add esp, 0x10
lea eax, [ebp - 0xba4]
push eax
push dword [ebp - 0x2f8]
push str.File_Size:____10d__File_Time:___s_r_n
push edi
call fcn.0040b2b2
add esp, 0x10
push str.Version_Information:_r_n
push edi
call fcn.0040b2b2
pop ecx
pop ecx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0xb40]
call fcn.0040c340
mov esi, 0xc7
push esi
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0xb40]
call fcn.0040c527
lea eax, [ebp - 0x2f4]
push eax
push str.___Company:_____s_r_n
push edi
call fcn.0040b2b2
add esp, 0xc
push esi
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0xb40]
call fcn.0040c5a1
lea eax, [ebp - 0x2f4]
push eax
push str.___Product:_____s_r_n
push edi
call fcn.0040b2b2
add esp, 0xc
push esi
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0xb40]
call fcn.0040c564
lea eax, [ebp - 0x2f4]
push eax
push str.___FileDesc:____s_r_n
push edi
call fcn.0040b2b2
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0xb40]
call fcn.0040c4e9
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push eax
movzx eax, word [ebp - 0x22a]
push eax
movzx eax, word [ebp - 0x22c]
push eax
push str.___FileVer:_____d._d._d._d_r_n
push edi
call fcn.0040b2b2
add esp, 0x18
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0xb40]
call fcn.0040c508
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push eax
movzx eax, word [ebp - 0x22a]
push eax
movzx eax, word [ebp - 0x22c]
push eax
push str.___ProdVer:_____d._d._d._d_r_n
push edi
call fcn.0040b2b2
add esp, 0x18
lea ecx, [ebp - 0xb40]
call fcn.0040c4d4
push 0x420738
push edi
call fcn.0040b2b2
pop ecx
pop ecx
mov byte [ebp - 0x1c], 1
jmp 0x40b71b
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret