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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push esi
mov dword [ebp - 8], 0x5702667f
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.57006e7e
add esp, 8
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x34]
push edx
push 0
call fcn.57006e7e
add esp, 8
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
push ecx
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x44]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.57006d2e
add esp, 8
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x570070d7
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov cx, word [esi + ecx*2]
mov word [eax + edx*2], cx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x570070aa
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x57007100
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
jmp 0x570070e7
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + ecx*2 - 2]
cmp eax, 0x5c
je 0x5700712d
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x57007106
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x24]
movsx eax, byte [edx]
test eax, eax
je 0x57007169
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x24]
movsx dx, byte [ecx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x57007134
push 0
push 0x80
push 3
push 0
push 1
push 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x57007190
jmp 0x570073de
push 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x64], eax
push 4
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x40]
push ecx
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], 0
push 0
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x570071e0
jmp 0x570073de
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x18]
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], 0
jmp 0x57007238