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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 0x1c], ebx
jne 0x60d0a0c
xor eax, eax
jmp 0x60d0d12
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x60d0a1b
xor eax, eax
jmp 0x60d0d11
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x60d0a2a
xor eax, eax
jmp 0x60d0d10
push ebx
push dword [ebp + 0x1c]
call fcn.060f4d0b
pop ecx
pop ecx
test eax, eax
jne 0x60d0ce3
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 0x1c], esi
cmp esi, 0xffffffff
je 0x60d0ce0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
test eax, eax
je 0x60d0cd9
cmp eax, 0xffffffff
je 0x60d0cd9
add eax, 2
push 0x613e9e8
push eax
mov dword [ebp - 8], eax
call fcn.060f3f76
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x60d0aa4
push dword [ebp + 0x1c]
jmp 0x60d0cda
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0x1c]
test eax, eax
jne 0x60d0acf
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.060ec467
pop ecx
jmp 0x60d0ce0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
je 0x60d0ac3
mov edx, dword [ebp - 4]
mov dword [ebp + 0x1c], ebx
cmp edx, 3
jb 0x60d0b00
cmp byte [esi], 0xff
jne 0x60d0b00
cmp byte [esi + 1], 0xfe
jne 0x60d0b00
mov eax, edx
shr eax, 1
lea ebx, [esi + 2]
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
jmp 0x60d0b69
mov eax, dword [ebp - 8]
push 0x613e9e8
mov word [esi + edx], bx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.060f3f76
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x60d0ac3
push dword [ebp - 4]
and dword [ebp - 0x10], 0
push esi
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.060f4bd4
add esp, 0x14
test eax, eax
je 0x60d0b56
push esi
call fcn.060ec467
push ebx
call fcn.060ec467
pop ecx
jmp 0x60d0ac9
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [ebp + 0x1c], 1
xor ecx, ecx
push 0x613e9e8
push 2
cmp dword [ebp + 0xc], ecx
jne 0x60d0c50
mov eax, dword [ebp - 8]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.060f3f76
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x60d0bae
push esi
call fcn.060ec467
cmp dword [ebp + 0x1c], 1
pop ecx
jne 0x60d0ce0
push ebx
jmp 0x60d0ac4
push dword [ebp - 8]
xor ecx, ecx
push eax
push dword [ebp + 8]
mov word [eax], cx
push ebx
call fcn.060d03e3
mov ecx, eax
mov eax, dword [ebp + 0x18]
add esp, 0x10
mov dword [ebp - 8], ecx
cmp eax, ecx
jae 0x60d0bd8
mov byte [ebp - 0x14], 1
mov ecx, eax
mov dword [ebp - 8], eax
cmp ecx, 1
jbe 0x60d0c15
lea eax, [ecx - 2]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x60d0c0e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
sub eax, edi
push 2
mov edx, edi
mov dword [ebp - 0x1c], eax
mov edi, eax
pop esi
mov ax, word [edi + edx]
mov word [edx], ax
add edx, esi
dec ecx
jne 0x60d0bf9
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
xor eax, eax
mov word [edi + ecx*2 - 4], ax
push dword [ebp - 4]
xor eax, eax
mov word [edi + ecx*2 - 2], ax
call fcn.060ec467
push esi
call fcn.060ec467
cmp dword [ebp + 0x1c], 1
pop ecx
pop ecx
jne 0x60d0c39
push ebx
call fcn.060ec467
pop ecx
cmp byte [ebp - 0x14], 0
mov eax, dword [ebp - 8]
je 0x60d0c4a
add eax, 0xfffffffe
jmp 0x60d0d10
dec eax
jmp 0x60d0d10
mov eax, edx
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.060f3f76
pop ecx
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x60d0b97
push dword [ebp - 4]
xor ecx, ecx
push eax
push dword [ebp + 0xc]
mov word [eax], cx
push dword [ebp + 8]
push ebx
call fcn.060d0eac
add esp, 0x14
push dword [ebp - 8]
test eax, eax
jne 0x60d0c9f
call fcn.060ec467
push esi
call fcn.060ec467
pop ecx
jmp 0x60d0b9d
push 0x612a21c
push 0xffffffffffffffff
push dword [ebp + 0x18]
push edi
call fcn.060f4dbd
mov eax, dword [ebp + 0x18]
push dword [ebp - 8]
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
call fcn.060ec467
push esi
call fcn.060ec467
add esp, 0x1c
cmp dword [ebp + 0x1c], 1
jne 0x60d0d09
push ebx
call fcn.060ec467
pop ecx
jmp 0x60d0d09
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x18]
cmp dword [ebp + 0x10], 0
push 0xffffffffffffffff
lea eax, [esi - 1]
jne 0x60d0cf5
push 0x613292c
jmp 0x60d0cf8
push dword [ebp + 0x10]
push eax
push edi
call fcn.060f4c4d
add esp, 0x10
xor eax, eax
mov word [edi + esi*2 - 2], ax
push edi
call fcn.060f452f
pop ecx
pop esi
pop edi
pop ebx
leave
ret