Function at 0x5dc410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6393ee
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6b278c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 8], 0
jne 0x5dc455
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x34]
call fcn.005df820
xor al, al
jmp 0x5dc69d
mov ecx, dword [ebp - 0x34]
call fcn.005daa40
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.005ddd90
mov dword [ebp - 0x14], 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.005b824e
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.005b8156
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.005b824e
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x5dc4bb
push 0
push 0
push 0
push 0xd
mov ecx, dword [ebp - 0x34]
call fcn.005df820
xor al, al
jmp 0x5dc69d
lea ecx, [ebp - 0x20]
call fcn.005ddc50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.005e0f40
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
call fcn.005b4bed
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005b7db8
add esp, 0x10
cmp eax, 1
je 0x5dc53a
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x34]
call fcn.005df820
mov byte [ebp - 0x25], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040e320
mov al, byte [ebp - 0x25]
jmp 0x5dc69d
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
test edx, edx
je 0x5dc5fd
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0xa
jne 0x5dc58f
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
add edx, 1
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.005e10d0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
jmp 0x5dc5f8
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0xd
jne 0x5dc5ef
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
test edx, edx
jle 0x5dc5b7
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
call fcn.005e10d0
push 0xa
lea ecx, [ebp - 0x20]
call fcn.005ddd00
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx + 1]
cmp eax, 0xa
jne 0x5dc5de
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
jmp 0x5dc5ed
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
jmp 0x5dc5f8
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x5dc54f
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
je 0x5dc618
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x20]
call fcn.005e10d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.005b4622
add esp, 4
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 0xc]
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.005ddcc0
push eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x34]
call fcn.005de250
movzx ecx, al
test ecx, ecx
je 0x5dc676
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040e320
mov al, byte [ebp - 0x2d]
jmp 0x5dc69d
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040e320
mov al, byte [ebp - 0x2e]
jmp 0x5dc69d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8