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

Disassembly:
mov eax, 0x413146
call fcn.0041236c
sub esp, 0x38
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
je 0x401a04
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, 0x200000
push esi
mov dword [ebp - 0x14], eax
call fcn.004045fb
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], esi
jb 0x4017f7
cmp byte [ebp + 0x24], 0
je 0x401792
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.00404cf6
pop ecx
jmp 0x401a04
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0x7fffd
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
mov eax, dword [ebp - 0x10]
push 0x41644c
add eax, 0x7fffd
push 4
push eax
call fcn.00404d01
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor ecx, ecx
push ecx
push ecx
push ecx
add eax, 0xffe80000
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push 0x180000
add eax, 0x80000
push eax
push dword [ebp - 0x1c]
call edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
jmp 0x401808
push 0
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40190b
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40182d
sub eax, edi
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
call fcn.00404c70
pop ecx
pop ecx
jmp 0x4018f4
cmp byte [esi], 0xa
je 0x401862
cmp esi, dword [ebp - 0x10]
je 0x40187b
dec esi
mov al, byte [esi]
cmp al, 0x20
je 0x40185e
cmp al, 0xa
jne 0x40187e
cmp al, 0xa
jne 0x40184e
inc esi
mov edi, esi
push 0xa
push edi
call fcn.00404d70
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4018b6
lea edi, [eax + 1]
jmp 0x401899
dec esi
jmp 0x401862
push 0xa
push esi
call fcn.00404d70
pop ecx
pop ecx
test eax, eax
je 0x4018fe
mov ecx, dword [ebp - 0x18]
push dword [ecx]
push eax
jmp 0x40183d
cmp al, 0x20
jne 0x40189f
inc edi
mov al, byte [edi]
test al, al
jne 0x401894
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.00404e2e
add esp, 0xc
test eax, eax
je 0x401865
jmp 0x4018c1
mov eax, esi
sub eax, dword [ebp - 0x10]
mov byte [esi], 0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], 0
je 0x4018fe
mov edi, dword [ebp - 0x10]
sub edi, dword [ebp - 0x1c]
add edi, dword [ebp - 0x14]
push edi
push dword [ebp - 0x1c]
push esi
call fcn.00404630
mov eax, esi
sub eax, dword [ebp - 0x1c]
mov byte [edi + esi], 0
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push esi
call fcn.00404c70
add esp, 0x14
mov esi, eax
test esi, esi
jne 0x401849
add dword [ebp - 0x18], 4
dec dword [ebp - 0x24]
jne 0x401823
and dword [ebp - 0x1c], 0
cmp dword [ebp + 0x1c], 0
jbe 0x401956
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1c]
lea esi, [eax + ecx*4]
push dword [esi]
push dword [ebp - 0x10]
call fcn.00404c70
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40194b
mov ecx, dword [esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401935
sub ecx, edx
add edi, ecx
jmp 0x401946
mov byte [edi], 0x58
inc edi
cmp byte [edi], 0xa
jne 0x401942
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x1c]
jb 0x401915
mov eax, dword [ebx]
mov esi, dword [ebp + 8]
push 0x416450
lea ecx, [eax + 1]
push esi
push eax
mov dword [ebx], ecx
call fcn.00404d01
push dword [ebp + 0x20]
lea eax, [esi - 1]
push eax
push dword [ebx]
call fcn.00404d01
mov eax, dword [ebp + 0x20]
add esp, 0x18
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401983
mov ecx, dword [ebx]
sub eax, edi
add ecx, eax
sub esi, eax
push 0x416454
lea eax, [esi - 1]
push eax
lea edx, [ecx + 1]
push ecx
mov dword [ebx], edx
call fcn.00404d01
and dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
push dword [ebp - 0x14]
and dword [ebp - 4], 0
push dword [ebp - 0x10]
lea edi, [ebp - 0x44]
call fcn.00401118
mov ecx, dword [ebp - 0x44]
add esp, 0x14
cmp dword [ebp - 0x30], 0x10
jae 0x4019d5
mov ecx, edi
lea eax, [ebp - 0x28]
push eax
push dword [ebx]
lea eax, [esi - 2]
call fcn.004011cb
mov eax, dword [ebp - 0x28]
add dword [ebx], eax
mov ebx, dword [ebx]
push dword [ebp - 0x10]
mov byte [ebx], 0
call fcn.00404cf6
add esp, 0xc
push 1
xor edi, edi
lea esi, [ebp - 0x44]
call fcn.0040145d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret