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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x184
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
mov dword [eax - 8], esp
xor ebx, ebx
dec ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4edc54
mov dword [eax + 4], 0x461630
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], ebx
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x68], xmm0
movdqu xmmword [ebp - 0x78], xmm0
movdqu xmmword [ebp - 0x88], xmm0
movdqu xmmword [ebp - 0x98], xmm0
lea eax, [ebp - 0x190]
push 0xf8
push 0xff
push eax
call fcn.00463600
add esp, 0xc
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x54], xmm0
sub esp, 0x1c
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
movaps xmm0, xmmword [0x4e2b20]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
je 0x436023
mov edi, eax
lea ebx, [ebp - 0x28]
lea eax, [ebp - 0x98]
push 0
push ebx
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43601c
cmp dword [ebp - 0x28], 0x40
jne 0x43601c
movzx eax, word [ebp - 0x98]
cmp eax, 0x5a4d
jne 0x43601c
xor eax, eax
push eax
push eax
push dword [ebp - 0x5c]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 0x5c]
jne 0x43601c
push 0
push ebx
push 0xf8
lea eax, [ebp - 0x190]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43601c
cmp dword [ebp - 0x28], 0xf8
jne 0x43601c
cmp dword [ebp - 0x190], 0x4550
jne 0x43601c
cmp word [ebp - 0x18a], 0
je 0x43601c
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x436047
mov dword [ebp - 0x30], eax
xor esi, esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x436052
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x184
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x436023
mov ebx, eax
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436039
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x5c]
add ecx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ebx
call fcn.004361e0
mov edx, dword [ebp - 0x2c]
movzx ecx, word [eax + edx + 0xe]
movzx esi, word [eax + edx + 0xc]
add esi, ecx
mov edi, edx
je 0x4360f6
add eax, edi
neg esi
xor ecx, ecx
jmp 0x4360b5
inc ecx
mov edx, esi
add edx, ecx
je 0x4360f6
mov edx, dword [eax + ecx*8 + 0x10]
test edx, edx
js 0x4360ae
movzx edx, dx
cmp edx, 0xa
jne 0x4360ae
mov ebx, 0x7fffffff
and ebx, dword [eax + ecx*8 + 0x14]
movzx edx, word [ebx + eax + 0xe]
movzx ecx, word [ebx + eax + 0xc]
add ecx, edx
je 0x4360f6
add ebx, eax
neg ecx
xor edx, edx
movzx esi, word [ebx + edx*8 + 0x10]
cmp esi, 0x360
je 0x436112
inc edx
mov esi, ecx
add esi, edx
jne 0x4360e2
xor esi, esi
mov dword [ebp - 0x10], 0xffffffff
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x436023
mov ecx, dword [ebx + edx*8 + 0x14]
test ecx, ecx
mov dword [ebp - 0x3c], eax
js 0x436188
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x30]
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x98], eax
mov dword [ecx + 0x9c], eax
mov dword [ebp - 0x54], 0x18
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x10], eax
call fcn.004361e0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + ecx + 4]
mov dword [ebp - 0x40], eax
mov edx, dword [edx + ecx]
mov ecx, dword [ebp - 0x38]
call fcn.004361e0
mov ecx, dword [ebp - 0x2c]
add ecx, eax
lea eax, [ebp - 0x54]
mov dword [eax + 0x10], ecx
push eax
call fcn.00436240
add esp, 4
mov esi, eax
mov edi, dword [ebp - 0x2c]
jmp 0x4360f8
and ecx, 0x7fffffff
mov ecx, dword [ecx + eax + 0x14]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], 0
jmp 0x436120