Function at 0x6015b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.r.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x601683
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 0x284]
push eax
push 0x400
lea ecx, [ebp - 0x278]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x601679
lea eax, [ebp - 0x278]
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x284]
lea edx, [ebp + ecx - 0x278]
cmp dword [ebp - 0x288], edx
jae 0x601674
mov eax, dword [ebp - 0x288]
movzx ecx, byte [eax]
cmp ecx, 0xd
jne 0x601663
mov edx, dword [ebp - 0x288]
movzx eax, byte [edx + 1]
cmp eax, 0xa
jne 0x601663
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x288]
add edx, 1
mov dword [ebp - 0x288], edx
mov eax, dword [ebp - 0x288]
add eax, 1
mov dword [ebp - 0x288], eax
jmp 0x601619
jmp 0x6015ea
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x280], edx
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 4], ecx
push 1
call fcn.00603080
add esp, 4
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x290], 0
je 0x6016ce
mov edx, dword [ebp - 0x290]
mov byte [edx], 0xfc
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x298], eax
jmp 0x6016d8
mov dword [ebp - 0x298], 0
mov ecx, dword [ebp - 0x298]
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
test eax, eax
je 0x6017cc
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
cmp edx, 0x20
je 0x601712
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
xor ecx, ecx
je 0x6017be
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 4]
cmp edx, 1
jle 0x6017be
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
add eax, 1
push eax
call fcn.00603080
add esp, 4
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x294]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x27c]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x28c], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
jae 0x60178c
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x28c]
add edx, 1
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x60175d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x6017a1
jmp 0x6017cc
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xff
jne 0x6017be
jmp 0x6017cc
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x6016eb
mov ecx, dword [ebp + 8]
push ecx
call fcn.006010e0
add esp, 4
push 0xc8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x5c], eax
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00601060
add esp, 8
test eax, eax
jne 0x60180a
mov eax, dword [0x605258]
call fcn.00602550
xor eax, eax
jmp 0x60184d
push 0
push 0
push 0
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x60184a
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x601848
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x60180a
mov eax, dword [ebp - 0x70]
mov esp, ebp
pop ebp
ret 0x10