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

Disassembly:
push pe_nt_image_headers32
mov eax, 0x2708d161
call fcn.2708a0be
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
cmp dword [eax + 0x14], ebx
jne 0x270219fa
mov eax, 0x8000ffff
jmp 0x27021cce
mov dword [ebp - 0x10], ebx
push 3
push 1
push SysReAllocString
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.270222e3
mov esi, eax
cmp esi, ebx
jge 0x27021a2f
cmp dword [ebp - 0x10], ebx
je 0x27021a28
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
jmp 0x27021cce
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x27021a50
call fcn.270222cf
cmp eax, ebx
jge 0x27021a50
mov esi, eax
jmp 0x27021a58
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
xor esi, esi
cmp esi, ebx
mov edi, dword [ebp - 0x24]
jl 0x27021a1b
mov eax, dword [0x270bb06c]
mov ecx, 0x270bb06c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [edi + 2]
push eax
lea esi, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.2700b1e5
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
jne 0x27021aad
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.27007699
cmp dword [ebp - 0x10], ebx
je 0x27021aa3
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
mov eax, 0x8007000e
jmp 0x27021cce
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call sub.KERNEL32.dll_ReadFile
cmp eax, ebx
jne 0x27021acd
call fcn.270222cf
mov dword [ebp - 0x14], eax
jmp 0x27021ade
cmp dword [ebp - 0x18], edi
je 0x27021adb
mov dword [ebp - 0x14], 0x80070026
jmp 0x27021ae3
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], ebx
jge 0x27021b03
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.27007699
cmp dword [ebp - 0x10], ebx
je 0x27021afb
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
jmp 0x27021cce
cmp dword [ebp - 0x10], ebx
je 0x27021b13
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
mov dword [ebp - 0x10], ebx
lea eax, [edi + esi]
mov byte [eax], bl
mov byte [eax + 1], bl
push 3
pop ecx
mov edi, 0x270a316c
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x18], ebx
jne 0x27021b38
mov dword [ebp - 0x14], 0xfde9
jmp 0x27021b8b
mov cx, word [esi]
mov eax, 0x2709f384
cmp cx, word [eax]
jne 0x27021b4e
mov dword [ebp - 0x14], 0x4b0
jmp 0x27021b7f
mov eax, 0x2709f388
cmp cx, word [eax]
jne 0x27021b84
mov dword [ebp - 0x14], 0x4b1
mov eax, esi
cmp cx, bx
je 0x27021b7f
movzx cx, byte [eax + 1]
mov dx, word [eax]
shl dx, 8
or cx, dx
mov word [eax], cx
inc eax
inc eax
cmp word [eax], bx
jne 0x27021b66
mov dword [ebp - 0x18], esi
jmp 0x27021b8b
mov dword [ebp - 0x14], 3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
je 0x27021ba6
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x270a314c
push eax
call dword [ecx]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x27021bd3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.27007699
cmp dword [ebp - 0x10], ebx
je 0x27021bc9
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
mov eax, 0x80004005
jmp 0x27021cce
cmp dword [ebp + 0x10], ebx
je 0x27021c14
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jge 0x27021c14
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x27021bf5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.27007699
cmp dword [ebp - 0x10], ebx
je 0x27021c0d
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
jmp 0x27021cce
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x27021c48
push dword [ebp - 0x14]
lea eax, [ebp - 0x128]
mov dword [ebp - 0x12c], eax
push esi
lea eax, [ebp - 0x12c]
push eax
call fcn.27018219
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x28], 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push ebx
push ebx
push 0x42
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ecx
call dword [edx + 0x14]
mov dword [ebp - 4], 2
test byte [ebp - 0x28], 1
mov esi, eax
je 0x27021c85
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x12c], eax
je 0x27021c85
push dword [ebp - 0x12c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp esi, ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
jge 0x27021caa
cmp eax, ebx
je 0x27021c9a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.27007699
jmp 0x27021a1b
cmp eax, ebx
je 0x27021cb4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.27007699
cmp dword [ebp - 0x10], ebx
je 0x27021ccc
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
call fcn.2708a15d
ret 0xc