Function at 0x140002e64
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x160], rbx
mov rax, qword [0x14021c510]
xor rax, rbp
mov qword [rbp + 0x100], rax
mov r12, rdx
mov qword [rbp + 0x10], rdx
mov rdx, rcx
lea r8, [0x1401e2318]
xor ebx, ebx
lea rcx, [rbp]
mov qword [rbp], rbx
call fcn.14016f350
mov rcx, qword [rbp]
test rcx, rcx
jne 0x140002ec5
lea eax, [rbx + 1]
jmp 0x1400031e0
xor r8d, r8d
mov dword [rbp + 8], ebx
xor edx, edx
call fcn.14016b29c
mov r9, qword [rbp]
lea rsi, [0x140220180]
mov r8d, 2
mov rcx, rsi
lea r14d, [r8 - 1]
mov edx, r14d
call fcn.140170728
movzx ecx, word [0x140220180]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x1400031d2
mov rcx, qword [rbp]
lea edx, [r14 + 0x3b]
xor r8d, r8d
call fcn.14016b29c
mov r9, qword [rbp]
lea r8d, [r14 + 3]
mov edx, r14d
lea rcx, [rbp + 8]
call fcn.140170728
mov edx, dword [rbp + 8]
xor r8d, r8d
mov rcx, qword [rbp]
call fcn.14016b29c
mov r13d, dword [rbp + 8]
lea r8d, [r14 + 0x17]
mov r9, qword [rbp]
mov edx, r14d
mov rcx, rsi
add r13d, 0x58
call fcn.140170728
cmp dword [0x140220180], 0x4550
jne 0x1400031d2
movzx edx, word [0x140220194]
lea rax, [rdx + 0x38]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140002f89
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140168660
sub rsp, rcx
mov r9d, r14d
mov r8d, 8
lea rcx, [rsp + 0x20]
call fcn.140073060
mov rdi, rax
mov rdx, r14
add rax, 8
mov rcx, rdi
mov r8, qword [rdi - 0x18]
mov qword [rdi], rax
mov r9, qword [rbp]
call fcn.140170728
movzx eax, word [rdi]
cmp eax, 0x10b
je 0x140002ff7
cmp eax, 0x20b
jne 0x1400031d2
mov eax, dword [rdi + 0x90]
mov edi, ebx
mov r15d, dword [rbp + 8]
test eax, eax
cmovne edi, eax
add r15d, 0xa8
jmp 0x14000300f
mov eax, dword [rdi + 0x80]
mov edi, ebx
mov r15d, dword [rbp + 8]
test eax, eax
cmovne edi, eax
add r15d, 0x98
test edi, edi
jne 0x1400030ae
mov rcx, qword [rbp]
lea edx, [rdi - 0x10]
lea r8d, [rdi + 2]
mov dword [rbp + 0xc], ebx
call fcn.14016b29c
mov r9, qword [rbp]
lea r8d, [rdi + 0x10]
mov rdx, r14
mov rcx, rsi
call fcn.140170728
mov rax, qword [0x140220180]
cmp rax, qword [0x14021d110]
jne 0x1400030a3
mov rax, qword [0x140220188]
cmp rax, qword [0x14021d118]
jne 0x1400030a3
mov rcx, qword [rbp]
lea edx, [rdi - 0x14]
mov r8d, r14d
call fcn.14016b29c
mov r9, qword [rbp]
lea r8d, [rdi + 4]
mov rdx, r14
lea rcx, [rbp + 0xc]
call fcn.140170728
mov ecx, dword [rbp + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbp]
mov dword [rbp + 0xc], eax
call fcn.14016acac
mov edi, eax
mov eax, 0xfffffffc
sub eax, dword [rbp + 0xc]
add edi, eax
jmp 0x1400030ae
mov rcx, qword [rbp]
call fcn.14016acac
mov edi, eax
lea rcx, [rbp + 0x20]
call fcn.140093690
mov rcx, qword [rbp]
xor r8d, r8d
xor edx, edx
mov esi, edi
call fcn.14016b29c
test r13d, r13d
je 0x140003149
mov r9, qword [rbp]
lea r8d, [r13 + 4]
mov rdx, r14
lea rcx, [0x140220180]
call fcn.140170728
lea rcx, [0x140220180]
mov r8, rax
mov dword [r13 + rcx], ebx
mov rdx, rcx
lea rcx, [rbp + 0x20]
mov r12, rax
call fcn.140093720
test edi, edi
je 0x140003108
sub esi, r12d
mov r9, qword [rbp]
sub r15d, r13d
lea r13, [0x140220180]
mov rdx, r14
mov rcx, r13
lea r8d, [r15 + 4]
call fcn.140170728
mov r8, rax
lea rcx, [rbp + 0x20]
mov rdx, r13
mov r15, rax
mov qword [rax + r13 - 8], rbx
call fcn.140093720
mov r12, qword [rbp + 0x10]
test edi, edi
je 0x140003150
sub esi, r15d
jmp 0x140003150
lea r13, [0x140220180]
mov r9, qword [rbp]
mov eax, 0x1000
cmp esi, eax
mov r8d, esi
mov rdx, r14
mov rcx, r13
cmova r8d, eax
test edi, edi
cmove r8d, eax
call fcn.140170728
mov r15, rax
test rax, rax
je 0x1400031c4
mov r12d, 0x1000
mov r8, r15
lea rcx, [rbp + 0x20]
mov rdx, r13
call fcn.140093720
test edi, edi
je 0x140003199
sub esi, r15d
je 0x1400031c0
mov r9, qword [rbp]
cmp esi, r12d
mov r8d, esi
mov rdx, r14
cmova r8, r12
mov rcx, r13
test edi, edi
cmove r8, r12
call fcn.140170728
mov r15, rax
test rax, rax
jne 0x140003181
mov r12, qword [rbp + 0x10]
lea rdx, [rbp + 0x20]
mov rcx, r12
call fcn.140093670
jmp 0x1400031d5
mov ebx, r14d
mov rcx, qword [rbp]
call fcn.14016aee0
mov eax, ebx
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.140168070
mov rbx, qword [rbp + 0x160]
lea rsp, [rbp + 0x110]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret