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

Disassembly:
push 0xbb0
push 0x41be68
call fcn.00409d68
mov eax, dword [0x422980]
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.00408fb0
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 0x4057b3
mov dword [ebp - 0xbc0], esi
cmp word [esi], 0x5a4d
jne 0x4055a3
mov esi, dword [esi + 0x3c]
add esi, dword [ebp - 0xbb0]
mov dword [ebp - 0xbbc], esi
cmp dword [esi], 0x4550
je 0x4055ae
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x4057be
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 0x405630
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 0x405624
push dword [ebp - 0xbb4]
push dword [ebp - 0xbb8]
lea eax, [ebp - 0x150]
push eax
call fcn.00405117
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.00403e5e
lea eax, [ebp - 0x358]
push eax
push str._s_r_n
push edi
call fcn.00403e5e
push dword [esi + 0x50]
push dword [esi + 0x34]
push str.Image_Base:_0x_08x__Image_Size:_0x_08x_r_n
push edi
call fcn.00403e5e
push dword [esi + 8]
push dword [esi + 0x58]
push str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
push edi
call fcn.00403e5e
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0xba8]
push str.File_Size:____10d__File_Time:___s_r_n
push edi
call fcn.00403e5e
add esp, 0x48
push str.Version_Information:_r_n
push edi
call fcn.00403e5e
pop ecx
pop ecx
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00403a3b
mov esi, 0xc7
push esi
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xba0]
call fcn.0040378f
lea eax, [ebp - 0xec]
push eax
push str.___Company:_____s_r_n
push edi
call fcn.00403e5e
add esp, 0xc
push esi
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00403809
lea eax, [ebp - 0xec]
push eax
push str.___Product:_____s_r_n
push edi
call fcn.00403e5e
add esp, 0xc
push esi
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xba0]
call fcn.004037cc
lea eax, [ebp - 0xec]
push eax
push str.___FileDesc:____s_r_n
push edi
call fcn.00403e5e
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00403751
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.00403e5e
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xba0]
call fcn.00403770
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.00403e5e
add esp, 0x18
lea ecx, [ebp - 0xba0]
call fcn.0040373c
push 0x41b4ec
push edi
call fcn.00403e5e
pop ecx
pop ecx
mov byte [ebp - 0xba1], 1
jmp 0x4057b3
or dword [ebp - 4], 0xffffffff
movzx eax, byte [ebp - 0xba1]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00408280
call fcn.00409da3
ret