Function at 0x14012bdb0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov eax, 0x1178
call fcn.14026deb0
sub rsp, rax
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x1160], rax
cmp qword [rsp + 0x1180], 0
jne 0x14012bdea
xor eax, eax
jmp 0x14012c126
mov rax, qword [rsp + 0x1180]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x1180]
mov rcx, qword [rax]
call fcn.140274828
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x1180]
mov rax, qword [rax + 0x1020]
cmp qword [rsp + 0x40], rax
jne 0x14012be2d
xor eax, eax
jmp 0x14012c126
mov eax, dword [rsp + 0x1188]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x20
je 0x14012be51
cmp dword [rsp + 0x38], 0x40
je 0x14012be5c
mov qword [rsp + 0x30], 0x3c
jmp 0x14012be65
mov qword [rsp + 0x30], 0x40
jmp 0x14012be65
mov qword [rsp + 0x30], 0x48
mov rax, qword [rsp + 0x1180]
mov r9, qword [rax]
mov r8, qword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x20]
call fcn.14027bacc
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x28], eax
jge 0x14012beb1
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x1180]
mov rcx, qword [rax]
call fcn.1402796e8
xor eax, eax
jmp 0x14012c126
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rsp + 0x20]
mov dword [rcx], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 8]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x1180]
mov rcx, qword [rax]
call fcn.140274828
mov rcx, qword [rsp + 0x20]
movsxd rcx, dword [rcx + 4]
add rax, rcx
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
mov qword [rdx + rcx - 8], rax
mov eax, 0x1000
sub rax, qword [rsp + 0x30]
sub rax, 8
mov rcx, qword [rsp + 0x20]
cmp dword [rcx + 4], eax
jle 0x14012bf57
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x1180]
mov rcx, qword [rax]
call fcn.1402796e8
xor eax, eax
jmp 0x14012c126
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x1180]
mov r9, qword [rdx]
mov r8, rax
mov edx, 1
call fcn.14027bacc
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x28], eax
je 0x14012bfb9
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x1180]
mov rcx, qword [rax]
call fcn.1402796e8
xor eax, eax
jmp 0x14012c126
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 8]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x50]
call fcn.140162970
cmp dword [rsp + 0x2c], 0
jle 0x14012c05f
cmp dword [rsp + 0x2c], 0x1000
jle 0x14012bfee
mov dword [rsp + 0x3c], 0x1000
jmp 0x14012bff6
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x3c], eax
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x1180]
mov r9, qword [rcx]
mov r8, rax
mov edx, 1
lea rcx, [rsp + 0x160]
call fcn.14027bacc
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jg 0x14012c030
mov dword [rsp + 0x2c], 0
jmp 0x14012c05f
movsxd rax, dword [rsp + 0x28]
mov r8, rax
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x50]
call fcn.140162a00
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
jmp 0x14012bfcf
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x130]
call fcn.140162950
mov rax, qword [rsp + 0x20]
cmp dword [rax + 8], 0
jle 0x14012c121
mov rax, qword [rsp + 0x20]
add rax, 0xc
mov r8d, 0x30
lea rdx, [rsp + 0x130]
mov rcx, rax
call fcn.140270070
test eax, eax
jne 0x14012c0aa
mov rax, qword [rsp + 0x20]
jmp 0x14012c126
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 4]
cmp rax, 4
jbe 0x14012c105
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 4]
sub rax, 4
mov rcx, qword [rsp + 0x20]
add rcx, 0x3c
mov r8d, eax
mov rdx, rcx
xor ecx, ecx
call fcn.1401517e0
mov rcx, qword [rsp + 0x20]
movsxd rcx, dword [rcx + 4]
mov rdx, qword [rsp + 0x20]
lea rcx, [rdx + rcx + 0x3c]
mov edx, 4
imul rdx, rdx, 0
cmp eax, dword [rcx + rdx - 4]
jne 0x14012c105
mov rax, qword [rsp + 0x20]
jmp 0x14012c126
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x1180]
mov rcx, qword [rax]
call fcn.1402796e8
xor eax, eax
jmp 0x14012c126
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x1160]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x1178
ret