Function at 0x402b3a
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x488
mov eax, dword [0x47d550]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x7c]
push edi
xor edi, edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], edx
cmp eax, edi
jne 0x402b72
xor eax, eax
jmp 0x402f73
cmp ecx, edi
jne 0x402b84
xor eax, eax
mov dword [edx], 0x14
inc eax
jmp 0x402f73
push ebx
push edi
push 0x80
push 3
push edi
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x400], ebx
cmp ebx, 0xffffffff
jne 0x402bad
xor eax, eax
jmp 0x402f72
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402bc0
push ebx
jmp 0x402c1d
lea eax, [esi + 1]
push eax
call fcn.00429370
mov ebx, eax
pop ecx
mov dword [ebp - 0x408], ebx
cmp ebx, edi
jne 0x402bde
push dword [ebp - 0x400]
jmp 0x402c1d
lea eax, [esi + 1]
push eax
push edi
push ebx
call fcn.00446500
add esp, 0xc
push edi
lea eax, [ebp - 0x410]
push eax
push esi
mov dword [ebp - 0x410], edi
mov edi, dword [ebp - 0x400]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402c15
cmp dword [ebp - 0x410], esi
je 0x402c28
push ebx
call fcn.00429365
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402f06
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xd8]
push eax
call fcn.00427f3d
mov eax, 0x5a4d
pop ecx
cmp word [ebx], ax
jne 0x402c6c
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
jne 0x402c6c
mov eax, 0x20b
cmp word [esi + 0x18], ax
lea edi, [esi + 0x58]
mov eax, edi
sete byte [ebp - 0x3f9]
sub eax, ebx
jns 0x402c72
push ebx
jmp 0x402d33
push eax
lea eax, [ebp - 0xd8]
push ebx
push eax
call fcn.004290f3
add esp, 0xc
cmp byte [ebp - 0x3f9], 0
lea eax, [edi + 4]
lea edi, [esi + 0xa8]
jne 0x402c9b
lea edi, [esi + 0x98]
mov ecx, edi
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.004290f3
add esp, 0xc
cmp byte [ebp - 0x3f9], 0
je 0x402cc1
mov eax, dword [esi + 0xac]
jmp 0x402cc7
mov eax, dword [esi + 0x9c]
mov dword [ebp - 0x414], eax
mov eax, dword [esi + 0x54]
lea ecx, [edi + 8]
sub eax, ecx
add eax, ebx
push eax
push ecx
lea eax, [ebp - 0xd8]
push eax
call fcn.004290f3
mov ebx, dword [esi + 0x54]
xor eax, eax
mov byte [ebp - 0x3f8], 0
lea edi, [ebp - 0x3f7]
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
push 0x318
stosb byte es:[edi], al
lea eax, [ebp - 0x3f0]
push 0
push eax
call fcn.00446500
movzx eax, word [esi + 0x14]
and dword [ebp - 0x40c], 0
lea edi, [eax + esi + 0x18]
movzx eax, word [esi + 6]
add esp, 0xc
cmp ax, 0x14
jbe 0x402d3e
push dword [ebp - 0x408]
call fcn.00429365
pop ecx
jmp 0x402f06
and dword [ebp - 0x400], 0
xor ecx, ecx
cmp cx, ax
jae 0x402d91
lea eax, [ebp - 0x3f8]
mov dword [ebp - 0x404], eax
cmp dword [edi + 0x10], 0
je 0x402d7c
push 0x28
push edi
push dword [ebp - 0x404]
call fcn.00446ba0
add esp, 0xc
inc dword [ebp - 0x40c]
add dword [ebp - 0x404], 0x28
movzx eax, word [esi + 6]
add edi, 0x28
inc dword [ebp - 0x400]
cmp dword [ebp - 0x400], eax
jl 0x402d58
mov eax, dword [ebp - 0x40c]
jmp 0x402e00
test eax, eax
jle 0x402e00
lea esi, [ebp - 0x3f8]
mov dword [ebp - 0x400], eax
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x3c]
jbe 0x402def
xor eax, eax
mov byte [ebp + 4], 0
lea edi, [ebp + 5]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp + 0xc]
push 0x28
rep stosd dword es:[edi], eax
lea eax, [ebp + 4]
push esi
push eax
call fcn.00446ba0
push 0x28
lea edi, [esi + 0x28]
push edi
push esi
call fcn.00446ba0
push 0x28
lea eax, [ebp + 4]
push eax
push edi
call fcn.00446ba0
add esp, 0x24
add esi, 0x28
dec dword [ebp - 0x400]
jne 0x402da9
mov eax, dword [ebp - 0x404]
dec eax
cmp eax, 1
mov dword [ebp - 0x404], eax
jge 0x402d99
mov edi, dword [ebp - 0x40c]
test edi, edi
jle 0x402e3f
lea esi, [ebp - 0x3e8]
mov eax, dword [esi + 4]
push dword [esi]
add eax, dword [ebp - 0x408]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.004290f3
add ebx, dword [esi]
add esp, 0xc
add esi, 0x28
dec edi
jne 0x402e1c
mov ecx, dword [ebp - 0x414]
mov eax, dword [ebp - 0x410]
lea edx, [ebx + ecx]
cmp eax, edx
jbe 0x402e6f
sub eax, ebx
sub eax, ecx
push eax
mov eax, dword [ebp - 0x408]
add ebx, eax
lea eax, [ebp - 0xd8]
push ebx
push eax
call fcn.004290f3
add esp, 0xc
xor eax, eax
mov byte [ebp + 0x2c], 0
lea edi, [ebp + 0x2d]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.0042918c
push dword [ebp - 0x408]
call fcn.00429365
push 0x58
call fcn.00429370
mov esi, eax
add esp, 0x10
test esi, esi
je 0x402f06
push 0x58
push 0
push esi
call fcn.00446500
push 0x44
push 0x465e80
push esi
call fcn.00446ba0
push 0x14
lea eax, [ebp + 0x2c]
push eax
lea eax, [esi + 0x44]
push eax
call fcn.00446ba0
xor eax, eax
mov byte [ebp + 0x40], 0
lea edi, [ebp + 0x41]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x40]
push eax
push 0x58
push esi
call fcn.004292ae
push esi
call fcn.00429365
mov esi, 0x85
push esi
call fcn.00429370
mov ebx, eax
add esp, 0x38
test ebx, ebx
jne 0x402f0a
xor eax, eax
jmp 0x402f71
push esi
push 0
push ebx
call fcn.00446500
push 0x71
push 0x465ec8
push ebx
call fcn.00446ba0
push 0x14
lea eax, [ebp + 0x40]
push eax
lea eax, [ebx + 0x71]
push eax
call fcn.00446ba0
xor eax, eax
mov byte [ebp + 0x54], 0
lea edi, [ebp + 0x55]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x54]
push eax
push esi
push ebx
call fcn.004292ae
push ebx
call fcn.00429365
push 0x14
pop esi
push esi
lea eax, [ebp + 0x54]
push eax
push dword [ebp - 0x418]
call fcn.00446ba0
mov eax, dword [ebp - 0x41c]
mov dword [eax], esi
xor eax, eax
add esp, 0x40
inc eax
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
pop edi
call fcn.004464e5
add ebp, 0x6c
leave
ret 0xc