Function at 0x4014e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449098
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x4590b0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor esi, esi
cmp dword [edi + 0xc], esi
jne 0x401860
mov al, byte [edi + 0x1b]
cmp al, 1
jne 0x401560
mov eax, dword [edi + 8]
cmp eax, 0xffff
jae 0x401548
mov ecx, dword [0x45c3e8]
push 0x2000
push esi
push esi
movzx eax, ax
push esi
push eax
push ecx
call dword [0x44d2d8]
mov dword [edi + 0xc], eax
jmp 0x4017f8
push 0x2010
push esi
push esi
push esi
push eax
push esi
call dword [0x44d2d8]
mov dword [edi + 0xc], eax
jmp 0x4017f8
mov ecx, dword [edi + 8]
mov dword [esp + 0xc], esi
cmp ecx, 0xffff
jae 0x4016bc
mov dword [esp + 0x10], esi
mov dword [esp + 0x40], esi
cmp al, 3
jne 0x401605
push ecx
mov eax, esp
movzx edx, cx
mov dword [esp + 0x1c], esp
push ecx
mov dword [eax], edx
mov eax, esp
lea esi, [esp + 0x14]
mov dword [esp + 0x20], esp
mov dword [eax], 0x44f1f0
call fcn.00401400
test al, al
je 0x401605
lea esi, [esp + 0x14]
call fcn.00401440
lea esi, [esp + 0x1c]
lea eax, [esp + 0x14]
call fcn.00401460
mov byte [esp + 0x40], 2
mov esi, dword [eax]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x45c3e8]
push eax
push ecx
call dword [0x44d1dc]
mov edx, dword [esp + 0xc]
push edx
mov ebx, eax
call dword [0x44d270]
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push ebx
push eax
push esi
call edx
lea ecx, [esp + 0x1c]
mov dword [edi + 0xc], eax
mov byte [esp + 0x40], 1
call fcn.00403d00
jmp 0x40168f
cmp byte [edi + 0x1b], 2
jne 0x4016a4
mov eax, dword [edi + 8]
push ecx
movzx eax, ax
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov dword [ecx], eax
mov eax, esp
lea esi, [esp + 0x14]
mov dword [esp + 0x20], esp
mov dword [eax], 0x44f1f8
call fcn.00401400
test al, al
je 0x4016a4
lea esi, [esp + 0x14]
call fcn.00401480
lea esi, [esp + 0x1c]
lea eax, [esp + 0x14]
call fcn.00401460
mov byte [esp + 0x40], 4
mov ecx, dword [esp + 0x10]
mov edx, dword [0x45c3e8]
mov esi, dword [eax]
push ecx
push edx
call dword [0x44d1dc]
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call dword [0x44d270]
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push ebx
push eax
push esi
call edx
lea ecx, [esp + 0x1c]
mov dword [edi + 0xc], eax
mov byte [esp + 0x40], 3
call fcn.00403d00
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4016a4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4017f8
push eax
call dword [0x44d248]
jmp 0x4017f8
push 0x44f200
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.00436792
add esp, 0xc
test eax, eax
jne 0x4017f8
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x4017f8
push 2
push esi
push eax
call fcn.0043643c
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call fcn.0043665e
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push 0
push edx
mov ebx, eax
call fcn.0043643c
add esp, 0xc
push ebx
call fcn.00435cf9
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4017eb
mov ecx, dword [esp + 0xc]
push ecx
push ebx
push 1
push eax
call fcn.00436395
mov al, byte [edi + 0x1b]
add esp, 0x10
cmp al, 3
jne 0x401780
lea esi, [esp + 0x18]
call fcn.00401440
lea esi, [esp + 0x1c]
lea eax, [esp + 0x18]
mov dword [esp + 0x40], 5
call fcn.00401460
mov byte [esp + 0x40], 6
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ebx
push ecx
push eax
call edx
mov ecx, esi
mov dword [edi + 0xc], eax
mov byte [esp + 0x40], 5
call fcn.00403d00
jmp 0x4017c6
cmp al, 2
jne 0x4017de
lea esi, [esp + 0x18]
call fcn.00401480
lea esi, [esp + 0x1c]
lea eax, [esp + 0x18]
mov dword [esp + 0x40], 7
call fcn.00401460
mov byte [esp + 0x40], 8
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, esi
mov dword [edi + 0xc], eax
mov byte [esp + 0x40], 7
call fcn.00403d00
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4017de
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
push eax
call fcn.004360ea
add esp, 4
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0043606e
add esp, 4
mov eax, dword [edi + 0xc]
xor ecx, ecx
cmp eax, ecx
jne 0x401822
xor edx, edx
mov word [edi + 0x18], dx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov byte [edi + 0x1a], dl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x1c]
push ecx
push 0x18
push eax
call dword [0x44d080]
mov esi, dword [esp + 0x20]
movzx ecx, word [edi + 0x18]
mov eax, esi
cdq
idiv ecx
mov edx, dword [esp + 0x24]
cmp word [esp + 0x2e], 0x20
mov dword [edi + 0x14], edx
sete dl
mov byte [edi + 0x1a], dl
mov dword [edi + 0x10], eax
imul eax, ecx
xor ecx, ecx
cmp eax, esi
sete cl
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret