Function at 0x14015e530
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x11c0
call fcn.14037c5f0
sub rsp, rax
lea rdi, [rsp + 0x20]
mov ecx, 0x468
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x11d0]
mov rax, qword [0x140575740]
xor rax, rsp
mov qword [rsp + 0x11b8], rax
cmp qword [rsp + 0x11d0], 0
jne 0x14015e584
xor eax, eax
jmp 0x14015e972
mov rax, qword [rsp + 0x11d0]
add rax, 0x18
mov qword [rsp + 0x1190], rax
mov rax, qword [rsp + 0x11d0]
mov rcx, qword [rax]
call fcn.1403b6ff0
mov qword [rsp + 0x11a0], rax
mov rax, qword [rsp + 0x11d0]
mov rax, qword [rax + 0x1020]
cmp qword [rsp + 0x11a0], rax
jne 0x14015e5d0
xor eax, eax
jmp 0x14015e972
mov eax, dword [rsp + 0x11d8]
mov dword [rsp + 0x11b0], eax
cmp dword [rsp + 0x11b0], 0x20
je 0x14015e600
cmp dword [rsp + 0x11b0], 0x40
je 0x14015e60e
mov qword [rsp + 0x1198], 0x3c
jmp 0x14015e61a
mov qword [rsp + 0x1198], 0x40
jmp 0x14015e61a
mov qword [rsp + 0x1198], 0x48
mov rax, qword [rsp + 0x11d0]
mov r9, qword [rax]
mov r8, qword [rsp + 0x1198]
mov edx, 1
mov rcx, qword [rsp + 0x1190]
call fcn.1403b55a0
mov dword [rsp + 0x1184], eax
mov eax, dword [rsp + 0x1198]
cmp dword [rsp + 0x1184], eax
jge 0x14015e678
xor r8d, r8d
mov rdx, qword [rsp + 0x11a0]
mov rax, qword [rsp + 0x11d0]
mov rcx, qword [rax]
call fcn.1403b5fc0
xor eax, eax
jmp 0x14015e972
mov rax, qword [rsp + 0x1190]
mov ecx, dword [rax]
call sub.WS2_32.dll_ntohl
mov rcx, qword [rsp + 0x1190]
mov dword [rcx], eax
mov rax, qword [rsp + 0x1190]
mov ecx, dword [rax + 4]
call sub.WS2_32.dll_ntohl
mov rcx, qword [rsp + 0x1190]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x1190]
mov ecx, dword [rax + 8]
call sub.WS2_32.dll_ntohl
mov rcx, qword [rsp + 0x1190]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x11d0]
mov rcx, qword [rax]
call fcn.1403b6ff0
mov rcx, qword [rsp + 0x1190]
movsxd rcx, dword [rcx + 4]
add rax, rcx
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x1190]
mov qword [rdx + rcx - 8], rax
mov eax, 0x1000
sub rax, qword [rsp + 0x1198]
sub rax, 8
mov rcx, qword [rsp + 0x1190]
cmp dword [rcx + 4], eax
jle 0x14015e73c
xor r8d, r8d
mov rdx, qword [rsp + 0x11a0]
mov rax, qword [rsp + 0x11d0]
mov rcx, qword [rax]
call fcn.1403b5fc0
xor eax, eax
jmp 0x14015e972
mov rax, qword [rsp + 0x1190]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x1198]
mov rdx, qword [rsp + 0x1190]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x11d0]
mov r9, qword [rdx]
mov r8, rax
mov edx, 1
call fcn.1403b55a0
mov dword [rsp + 0x1184], eax
mov rax, qword [rsp + 0x1190]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x1184], eax
je 0x14015e7b3
xor r8d, r8d
mov rdx, qword [rsp + 0x11a0]
mov rax, qword [rsp + 0x11d0]
mov rcx, qword [rax]
call fcn.1403b5fc0
xor eax, eax
jmp 0x14015e972
mov rax, qword [rsp + 0x1190]
mov eax, dword [rax + 8]
mov dword [rsp + 0x1188], eax
lea rcx, [rsp + 0x30]
call fcn.1401a2d10
nop
cmp dword [rsp + 0x1188], 0
jle 0x14015e887
cmp dword [rsp + 0x1188], 0x1000
jle 0x14015e7f8
mov dword [rsp + 0x11b4], 0x1000
jmp 0x14015e806
mov eax, dword [rsp + 0x1188]
mov dword [rsp + 0x11b4], eax
movsxd rax, dword [rsp + 0x11b4]
mov rcx, qword [rsp + 0x11d0]
mov r9, qword [rcx]
mov r8, rax
mov edx, 1
lea rcx, [rsp + 0x130]
call fcn.1403b55a0
mov dword [rsp + 0x1184], eax
cmp dword [rsp + 0x1184], 0
jg 0x14015e84c
mov dword [rsp + 0x1188], 0
jmp 0x14015e887
movsxd rax, dword [rsp + 0x1184]
mov r8, rax
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x30]
call fcn.1401a2e40
mov eax, dword [rsp + 0x1184]
mov ecx, dword [rsp + 0x1188]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x1188], eax
jmp 0x14015e7d0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1148]
call fcn.1401a2ce0
mov rax, qword [rsp + 0x1190]
cmp dword [rax + 8], 0
jle 0x14015e96a
mov rax, qword [rsp + 0x1190]
add rax, 0xc
mov r8d, 0x30
lea rdx, [rsp + 0x1148]
mov rcx, rax
call fcn.1404104c0
test eax, eax
jne 0x14015e8de
mov rax, qword [rsp + 0x1190]
jmp 0x14015e972
mov rax, qword [rsp + 0x1190]
movsxd rax, dword [rax + 4]
cmp rax, 4
jbe 0x14015e94b
mov rax, qword [rsp + 0x1190]
movsxd rax, dword [rax + 4]
sub rax, 4
mov rcx, qword [rsp + 0x1190]
add rcx, 0x3c
mov r8d, eax
mov rdx, rcx
xor ecx, ecx
call fcn.140175890
mov rcx, qword [rsp + 0x1190]
movsxd rcx, dword [rcx + 4]
mov rdx, qword [rsp + 0x1190]
lea rcx, [rdx + rcx + 0x3c]
mov edx, 4
imul rdx, rdx, 0
cmp eax, dword [rcx + rdx - 4]
jne 0x14015e94b
mov rax, qword [rsp + 0x1190]
jmp 0x14015e972
xor r8d, r8d
mov rdx, qword [rsp + 0x11a0]
mov rax, qword [rsp + 0x11d0]
mov rcx, qword [rax]
call fcn.1403b5fc0
xor eax, eax
jmp 0x14015e972
mov rax, qword [rsp + 0x1190]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14037c300
mov rax, rdi
mov rcx, qword [rsp + 0x11b8]
xor rcx, rsp
call fcn.14037c650
add rsp, 0x11c0
pop rdi
ret