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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4404b1
mov eax, dword fs:[0]
push eax
sub esp, 0xe64
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
push 0x104
lea eax, [ebp - 0x1dc]
push 0
push eax
call fcn.00426340
add esp, 0xc
lea eax, [ebp - 0x1dc]
xor esi, esi
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x406125
push 0x208
lea eax, [ebp - 0x4ac]
push esi
push eax
call fcn.00426340
add esp, 0xc
mov dword [ebp - 0xe48], esi
cmp byte [ebp - 0x1dc], 0
mov dword [ebp - 0xe44], esi
mov dword [ebp - 0xe44], 0xf
mov dword [ebp - 0xe48], esi
mov byte [ebp - 0xe58], 0
jne 0x405d38
xor ecx, ecx
jmp 0x405d4a
lea ecx, [ebp - 0x1dc]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405d41
sub ecx, edx
push ecx
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0xe58]
call fcn.00402740
mov dword [ebp - 4], 0
lea edx, [ebp - 0xe58]
lea ecx, [ebp - 0xe70]
call fcn.0040fcc0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x405d81
mov eax, dword [eax]
push eax
push 0x454864
lea eax, [ebp - 0x4ac]
push 0x104
push eax
call fcn.00402ef0
add esp, 0x10
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xe5c]
cmp eax, 8
jb 0x405dbd
inc eax
lea ecx, [ebp - 0xe70]
push eax
push dword [ebp - 0xe70]
call fcn.00409ea0
xor eax, eax
mov dword [ebp - 0xe5c], 7
mov dword [ebp - 0xe60], 0
mov word [ebp - reloc.advapi32.dll_SetKernelObjectSecurity], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xe44]
cmp eax, 0x10
jb 0x405dff
inc eax
lea ecx, [ebp - 0xe58]
push eax
push dword [ebp - 0xe58]
call fcn.00402ba0
lea eax, [ebp - 0x5ec]
mov dword [ebp - 0xe44], 0xf
push eax
lea edx, [ebp - 0x4f4]
mov dword [ebp - 0xe48], 0
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 0xe58], 0
call fcn.00406fd0
mov eax, 0x5a4d
add esp, 4
cmp ax, word [ebp - reloc.advapi32.dll_SetKernelObjectSecurity]
je 0x405e4a
xor eax, eax
jmp 0x406127
cmp dword [ebp - 0x5ec], 0x4550
jne 0x405e43
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor edi, edi
xor eax, eax
mov word [ebp - reloc.advapi32.dll_SetKernelObjectSecurity], ax
cmp esi, 0xffffffff
je 0x405ec8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [ebp - 0x4b4]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x405ec1
push dword [ebp - 0x4b0]
lea ecx, [ebp - 0x2a4]
push dword [ebp - 0x4b4]
call fcn.00406150
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
push str.Module__d_r_n
push 0x4679c4
call fcn.00401710
lea eax, [ebp - 0x1dc]
push eax
push str._s_r_n
push 0x4679c4
call fcn.00401710
add esp, 0x18
lea eax, [ebp - 0xe40]
push 0xc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
push dword [ebp - 0xe3c]
push dword [ebp - 0xe40]
push str.Image_Base:_0x_p__Image_Size:_0x_08x_r_n
push 0x4679c4
call fcn.00401710
push dword [ebp - 0x5e4]
push dword [ebp - 0x594]
push str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
push 0x4679c4
call fcn.00401710
lea eax, [ebp - 0x2a4]
push eax
push edi
push str.File_Size:____10d__File_Time:___s_r_n
push 0x4679c4
call fcn.00401710
push str.Version_Information:_r_n
push 0x4679c4
call fcn.00401710
push 0x848
lea eax, [ebp - 0xe34]
push 0
push eax
call fcn.00426340
add esp, 0x44
lea eax, [ebp - 0x1dc]
lea ecx, [ebp - 0xe34]
push eax
call fcn.0040f760
mov dword [ebp - 4], 2
lea eax, [ebp - 0xd8]
push 0xc8
push 0
push eax
call fcn.00426340
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0xc04]
add esp, 0xc
push 0xc6
push eax
lea eax, [ebp - 0xd8]
push eax
call esi
lea eax, [ebp - 0xd8]
push eax
push str.___Company:_____s_r_n
push 0x4679c4
call fcn.00401710
push 0xc7
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00426340
add esp, 0x18
lea eax, [ebp - 0x9fc]
push 0xc6
push eax
lea eax, [ebp - 0xd8]
push eax
call esi
lea eax, [ebp - 0xd8]
push eax
push str.___Product:_____s_r_n
push 0x4679c4
call fcn.00401710
push 0xc7
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00426340
add esp, 0x18
lea eax, [ebp - 0x7f4]
push 0xc6
push eax
lea eax, [ebp - 0xd8]
push eax
call esi
lea eax, [ebp - 0xd8]
push eax
push str.___FileDesc:____s_r_n
push 0x4679c4
call fcn.00401710
movq xmm0, qword [ebp - 0xe2c]
movq qword [ebp - 0x4b4], xmm0
movzx eax, word [ebp - reloc.advapi32.dll_SetKernelObjectSecurity]
push eax
movzx eax, word [ebp - reloc.advapi32.dll_SetKernelObjectSecurity]
push eax
movzx eax, word [ebp - reloc.advapi32.dll_SetKernelObjectSecurity]
push eax
movzx eax, word [ebp - reloc.advapi32.dll_SetKernelObjectSecurity]
push eax
push str.___FileVer:_____d._d._d._d_r_n
push 0x4679c4
call fcn.00401710
movq xmm0, qword [ebp - 0xe24]
movq qword [ebp - 0x4b4], xmm0
movzx eax, word [ebp - reloc.advapi32.dll_SetKernelObjectSecurity]
push eax
movzx eax, word [ebp - reloc.advapi32.dll_SetKernelObjectSecurity]
push eax
movzx eax, word [ebp - reloc.advapi32.dll_SetKernelObjectSecurity]
push eax
movzx eax, word [ebp - reloc.advapi32.dll_SetKernelObjectSecurity]
push eax
push str.___ProdVer:_____d._d._d._d_r_n
push 0x4679c4
call fcn.00401710
mov eax, dword [ebp - 0xe34]
add esp, 0x3c
test eax, eax
je 0x4060f2
push eax
call fcn.004233d6
add esp, 4
push 0x454860
push 0x4679c4
mov dword [ebp - 0xe34], 0
call fcn.00401710
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe34]
call fcn.0040f800
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret