Function at 0x436f60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a0e0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4b01a8]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], edi
cmp dword [eax + 0x14], 8
jb 0x436f9c
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x437200
cmp esi, 0xffffffff
je 0x437200
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x1000
push eax
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x43700e
mov ecx, edi
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.00426df0
mov dword [edi], eax
mov dword [ebp - 4], 2
jmp 0x437226
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x2c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], eax
mov eax, 0x5a4d
mov byte [ebp - 4], 3
cmp word [ebx], ax
je 0x437067
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00426df0
push 0x4000
push dword [ebp - 0x2c]
mov dword [edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 4
jmp 0x437226
mov ecx, dword [ebx + 0x3c]
mov edx, 0x10b
add ecx, ebx
mov dword [ebp - 0x38], ecx
movzx eax, word [ecx + 0x18]
cmp ax, dx
je 0x43709f
mov ecx, edi
call fcn.00434400
push 0x4000
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 6
jmp 0x437226
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
cmp dword [ecx + 0x84], 0
mov dword [ebp - 0x3c], eax
jne 0x4370d6
mov ecx, edi
call fcn.00434400
push 0x4000
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 7
jmp 0x437226
lea ecx, [ebp - 0x34]
call fcn.00434400
mov eax, dword [ebp - 0x38]
push eax
push dword [ebp - 0x3c]
mov byte [ebp - 4], 8
push dword [eax + 0x80]
call fcn.00435a90
add eax, 0xc
add esp, 0xc
add eax, ebx
mov dword [ebp - 0x40], eax
mov eax, dword [eax]
test eax, eax
je 0x437191
nop dword [eax]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push eax
call fcn.00435a90
add esp, 0xc
cmp eax, 0xffffffff
je 0x4371d9
lea edx, [eax + ebx]
mov dword [ebp - 0x18], 0
mov eax, edx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea ecx, [eax + 1]
mov dword [ebp - 0x44], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x437145
sub eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
push eax
push edx
call fcn.0040ba60
push dword [ebp - 0x48]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push eax
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00419fe0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.004095c0
mov eax, dword [ebp - 0x40]
add eax, 0x14
mov dword [ebp - 0x40], eax
mov eax, dword [eax]
test eax, eax
jne 0x437110
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00426df0
mov ecx, dword [ebp - 0x34]
mov dword [edi], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x34]
mov dword [edi + 4], eax
call fcn.00421be0
push 0x4000
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 0xb
jmp 0x437226
mov ecx, edi
call fcn.00434400
lea ecx, [ebp - 0x34]
call fcn.00421be0
push 0x4000
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 9
jmp 0x437226
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00426df0
mov dword [edi], eax
mov dword [ebp - 4], 1
test esi, esi
je 0x43722d
cmp esi, 0xffffffff
je 0x43722d
push esi
call dword [0x4903e0]
mov eax, edi
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.00462f8d
mov esp, ebp
pop ebp
ret