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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e068
push 0x41ade0
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
mov byte [ebp - 0x1c], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x224]
rep stosd dword es:[edi], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x206
lea eax, [ebp - 0x224]
push eax
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x40b364
mov dword [ebp - 0xba8], esi
cmp word [esi], 0x5a4d
je 0x40b0c6
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0xbb0], edi
cmp dword [edi], 0x4550
je 0x40b0f3
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0xbac], esi
mov byte [ebp - 0xba4], 0
mov dword [ebp - 0x2f8], ebx
cmp esi, 0xffffffff
je 0x40b175
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x2f8], ebx
lea edx, [ebp - 0xbb8]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x40b16e
mov eax, dword [ebp - 0xbb4]
push eax
mov ecx, dword [ebp - 0xbb8]
push ecx
lea edx, [ebp - 0xba4]
push edx
call fcn.0040b380
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
push eax
push str.Module__d_r_n
mov esi, dword [ebp + 8]
push esi
call fcn.0040af30
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
push str._s_r_n
push esi
call fcn.0040af30
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push str.Module_Address:_0x_08x_r_n
push esi
call fcn.0040af30
add esp, 0xc
mov eax, dword [edi + 0x50]
push eax
mov ecx, dword [edi + 0x34]
push ecx
push str.Image_Base:_0x_08x__Image_Size:_0x_08x_r_n
push esi
call fcn.0040af30
add esp, 0x10
mov edx, dword [edi + 8]
push edx
mov eax, dword [edi + 0x58]
push eax
push str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
push esi
call fcn.0040af30
add esp, 0x10
lea ecx, [ebp - 0xba4]
push ecx
push ebx
push str.File_Size:____10d__File_Time:___s_r_n
push esi
call fcn.0040af30
add esp, 0x10
push str.Version_Information:_r_n
push esi
call fcn.0040af30
add esp, 8
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0xb40]
call fcn.0040bf10
push 0xc7
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0xb40]
call fcn.0040c140
lea ecx, [ebp - 0x2f4]
push ecx
push str.___Company:_____s_r_n
push esi
call fcn.0040af30
add esp, 0xc
push 0xc7
lea edx, [ebp - 0x2f4]
push edx
lea ecx, [ebp - 0xb40]
call fcn.0040c1e0
lea eax, [ebp - 0x2f4]
push eax
push str.___Product:_____s_r_n
push esi
call fcn.0040af30
add esp, 0xc
push 0xc7
lea ecx, [ebp - 0x2f4]
push ecx
lea ecx, [ebp - 0xb40]
call fcn.0040c190
lea edx, [ebp - 0x2f4]
push edx
push str.___FileDesc:____s_r_n
push esi
call fcn.0040af30
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0xb40]
call fcn.0040c0e0
mov ecx, dword [ebp - 0x226]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x228]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x22a]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x22c]
and ecx, 0xffff
push ecx
push str.___FileVer:_____d._d._d._d_r_n
push esi
call fcn.0040af30
add esp, 0x18
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0xb40]
call fcn.0040c110
mov eax, dword [ebp - 0x226]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x228]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x22a]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x22c]
and eax, 0xffff
push eax
push str.___ProdVer:_____d._d._d._d_r_n
push esi
call fcn.0040af30
add esp, 0x18
lea ecx, [ebp - 0xb40]
call fcn.0040c0c0
push 0x423078
push esi
call fcn.0040af30
add esp, 8
mov byte [ebp - 0x1c], 1
jmp 0x40b364
mov 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
mov esp, ebp
pop ebp
ret