Function at 0x4180a0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x14
mov ebp, dword [0xd8d918]
shl ebp, 4
mov eax, dword [0xd8d914]
test eax, 0x800
lea ecx, [ebp*8 + 0xd8d920]
je 0x4182e0
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4180de
mov eax, dword [ebp*8 + 0xd8d950]
cmp eax, edx
je 0x4182c3
mov eax, dword [ebp*8 + 0xd8d97c]
test eax, eax
jne 0x4182a6
test edx, edx
je 0x41812c
mov ebx, dword [ecx + 0x30]
mov eax, dword [ebx + 0x14]
cmp eax, edx
je 0x418114
nop
lea esi, [esi]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x418257
mov ecx, dword [eax + 0x14]
mov ebx, eax
cmp ecx, edx
jne 0x418100
mov eax, dword [ebx]
add eax, dword [ebp*8 + 0xd8d964]
mov dword [0x516e28], eax
mov dword [0x51acc8], eax
jmp 0x41824d
mov eax, dword [ebp*8 + 0xd8d944]
test eax, eax
je 0x418143
mov dword [esp], str.buf_prev:_backspace__lu__uwrt
call fcn.00416e00
mov eax, dword [ebp*8 + 0xd8d964]
mov dword [esp], eax
call fcn.00418300
mov esi, eax
test esi, esi
mov ebx, esi
je 0x418278
mov eax, dword [ebp*8 + 0xd8d95c]
mov edx, dword [ebp*8 + 0xd8d964]
mov ecx, edx
mov dword [esp + 0xc], ecx
mov edx, 0
cmp ecx, 0xffffffff
je 0x41817f
cdq
idiv ecx
mov edi, edx
mov ecx, eax
test edi, edi
jne 0x41818c
mov edi, dword [esp + 0xc]
dec ecx
mov eax, dword [ebp*8 + 0xd8d950]
test eax, eax
je 0x4181ad
mov edx, dword [esp + 0xc]
mov dword [esp], eax
add edi, edx
mov dword [esp + 0x10], ecx
call fcn.004185b0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4181da
mov eax, dword [ebp*8 + 0xd8d94c]
neg edi
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0041dda8
mov edi, eax
cmp edi, 0xffffffff
jne 0x4181fe
jmp 0x418270
mov eax, dword [ebp*8 + 0xd8d94c]
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041dda8
mov edi, eax
cmp edi, 0xffffffff
je 0x418294
mov eax, dword [ebp*8 + 0xd8d94c]
mov edx, dword [esi]
mov ecx, dword [ebp*8 + 0xd8d964]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call fcn.0041f3d7
cmp eax, 0xffffffff
je 0x418282
lea edx, [edi + eax]
xor ecx, ecx
mov dword [ebp*8 + 0xd8d95c], edx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edi
mov dword [esi + 8], eax
add eax, dword [esi]
mov dword [esi + 0x14], ecx
mov dword [0x516e28], eax
mov dword [0x51acc8], eax
add esp, 0x14
mov eax, ebx
pop ebx
pop ebp
pop esi
pop edi
ret
mov ecx, str.get_prev_buffer:_prev_bl__next__NULL
mov dword [esp], ecx
call fcn.00416e00
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x14]
jmp 0x41810b
mov dword [esp], esi
call fcn.004185b0
add esp, 0x14
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp], esi
call fcn.004185b0
add esp, 0x14
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp], esi
call fcn.004185b0
add esp, 0x14
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp], str.buf_prev:_async
mov dword [esp + 0x10], ecx
call fcn.00416e00
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
jmp 0x4180ed
mov dword [esp], str.buf_prev:_lu__ubl___bl
mov dword [esp + 0x10], ecx
call fcn.00416e00
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
jmp 0x4180de
mov dword [esp], str.buf_prev:_INTERNAL_I_O
mov dword [esp + 0x10], ecx
call fcn.00416e00
mov ecx, dword [esp + 0x10]
jmp 0x4180c7