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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414c78
push 0x409a08
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 0x40d882
mov dword [ebp - 0xba8], esi
cmp word [esi], 0x5a4d
je 0x40d5f6
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 0x40d623
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 0x40d6a5
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 0x40d69e
mov eax, dword [ebp - 0xbb4]
push eax
mov ecx, dword [ebp - 0xbb8]
push ecx
lea edx, [ebp - 0xba4]
push edx
call fcn.0040d8a0
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.0040d360
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
push str._s_r_n
push esi
call fcn.0040d360
add esp, 0xc
mov edx, dword [edi + 0x50]
push edx
mov eax, dword [edi + 0x34]
push eax
push str.Image_Base:_0x_08x__Image_Size:_0x_08x_r_n
push esi
call fcn.0040d360
add esp, 0x10
mov ecx, dword [edi + 8]
push ecx
mov edx, dword [edi + 0x58]
push edx
push str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
push esi
call fcn.0040d360
add esp, 0x10
lea eax, [ebp - 0xba4]
push eax
push ebx
push str.File_Size:____10d__File_Time:___s_r_n
push esi
call fcn.0040d360
add esp, 0x10
push str.Version_Information:_r_n
push esi
call fcn.0040d360
add esp, 8
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0xb40]
call fcn.0040e670
push 0xc7
lea edx, [ebp - 0x2f4]
push edx
lea ecx, [ebp - 0xb40]
call fcn.0040e8a0
lea eax, [ebp - 0x2f4]
push eax
push str.___Company:_____s_r_n
push esi
call fcn.0040d360
add esp, 0xc
push 0xc7
lea ecx, [ebp - 0x2f4]
push ecx
lea ecx, [ebp - 0xb40]
call fcn.0040e940
lea edx, [ebp - 0x2f4]
push edx
push str.___Product:_____s_r_n
push esi
call fcn.0040d360
add esp, 0xc
push 0xc7
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0xb40]
call fcn.0040e8f0
lea ecx, [ebp - 0x2f4]
push ecx
push str.___FileDesc:____s_r_n
push esi
call fcn.0040d360
add esp, 0xc
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0xb40]
call fcn.0040e840
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.___FileVer:_____d._d._d._d_r_n
push esi
call fcn.0040d360
add esp, 0x18
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0xb40]
call fcn.0040e870
mov edx, dword [ebp - 0x226]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x228]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x22a]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x22c]
and edx, 0xffff
push edx
push str.___ProdVer:_____d._d._d._d_r_n
push esi
call fcn.0040d360
add esp, 0x18
lea ecx, [ebp - 0xb40]
call fcn.0040e820
push 0x42bf84
push esi
call fcn.0040d360
add esp, 8
mov byte [ebp - 0x1c], 1
jmp 0x40d882
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