Function at 0x140006430
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x20]
mov rax, qword [0x140325ed8]
xor rax, rbp
mov qword [rbp + 0x130], rax
mov qword [rbp + 8], 0
mov dword [rbp], 0
mov dword [rbp + 4], 0
mov dword [rbp + 0x14], 0
mov dword [rbp + 0x30], 0
mov dword [rbp + 0x2c], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x150]
call fcn.140112d50
lea r8, [0x14032e2b4]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.140278e20
cmp qword [rbp + 8], 0
jne 0x1400064be
mov eax, 1
jmp 0x1400069f0
mov qword [rbp + 0x18], 0
mov dword [rbp + 0x10], 0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.1402796f0
mov r9, qword [rbp + 8]
mov r8d, 2
mov edx, 1
lea rcx, [0x1403bdcc0]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
mov eax, 2
imul rax, rax, 0
lea rcx, [0x1403bdcc0]
movzx ecx, word [rcx + rax]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp eax, 0x4d5a
jne 0x140006767
xor r8d, r8d
mov edx, 0x3c
mov rcx, qword [rbp + 8]
call fcn.1402796f0
mov r9, qword [rbp + 8]
mov r8d, 4
mov edx, 1
lea rcx, [rbp + 0x10]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
xor r8d, r8d
mov edx, dword [rbp + 0x10]
mov rcx, qword [rbp + 8]
call fcn.1402796f0
mov eax, dword [rbp + 0x10]
add eax, 0x58
mov dword [rbp + 0x14], eax
mov r9, qword [rbp + 8]
mov r8d, 0x18
mov edx, 1
lea rcx, [0x1403bdcc0]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1403bdcc0]
cmp dword [rcx + rax], 0x4550
jne 0x14000674e
mov eax, 2
imul rax, rax, 0xa
lea rcx, [0x1403bdcc0]
movzx eax, word [rcx + rax]
mov ecx, 0xffffffc7
cmp rax, rcx
jae 0x140006615
mov eax, 2
imul rax, rax, 0xa
lea rcx, [0x1403bdcc0]
movzx eax, word [rcx + rax]
add rax, 0x38
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400065fb
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14026deb0
sub rsp, rax
lea rax, [rsp + 0x20]
mov qword [rbp + 0x38], rax
jmp 0x14000661d
mov qword [rbp + 0x38], 0
mov eax, 2
imul rax, rax, 0xa
lea rcx, [0x1403bdcc0]
movzx eax, word [rcx + rax]
mov r9d, 1
mov r8d, 8
mov edx, eax
mov rcx, qword [rbp + 0x38]
call fcn.140113960
mov rcx, rax
call fcn.140113430
mov qword [rbp + 0x18], rax
mov r9, qword [rbp + 8]
mov rax, qword [rbp + 0x18]
mov r8, qword [rax - 0x18]
mov edx, 1
mov rcx, qword [rbp + 0x18]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
mov rax, qword [rbp + 0x18]
cmp qword [rax - 0x18], 4
jbe 0x14000674e
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rbp + 0x18]
movzx eax, word [rcx + rax]
mov dword [rbp + 0x34], eax
cmp dword [rbp + 0x34], 0x10b
je 0x1400066b0
cmp dword [rbp + 0x34], 0x20b
je 0x140006700
jmp 0x14000674e
mov rax, qword [rbp + 0x18]
cmp qword [rax - 0x18], 0x84
jb 0x1400066fe
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x18]
cmp dword [rcx + rax + 0x80], 0
je 0x1400066ec
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x18]
mov eax, dword [rcx + rax + 0x80]
mov dword [rbp], eax
mov eax, dword [rbp + 0x10]
add eax, 0x98
mov dword [rbp + 0x30], eax
mov dword [rbp + 0x2c], 0
jmp 0x14000674e
mov rax, qword [rbp + 0x18]
cmp qword [rax - 0x18], 0x94
jb 0x14000674e
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x18]
cmp dword [rcx + rax + 0x90], 0
je 0x14000673c
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x18]
mov eax, dword [rcx + rax + 0x90]
mov dword [rbp], eax
mov eax, dword [rbp + 0x10]
add eax, 0xa8
mov dword [rbp + 0x30], eax
mov dword [rbp + 0x2c], 0
cmp dword [rbp + 0x2c], 0
je 0x140006767
mov rcx, qword [rbp + 8]
call fcn.1402793a8
mov eax, 1
jmp 0x1400069f0
cmp dword [rbp], 0
jne 0x14000682c
mov dword [rbp + 0x28], 0
mov r8d, 2
mov edx, 0xfffffff0
mov rcx, qword [rbp + 8]
call fcn.1402796f0
mov r9, qword [rbp + 8]
mov r8d, reloc.WS2_32.dll_recv
mov edx, 1
lea rcx, [0x1403bdcc0]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x140326d90]
lea rcx, [0x1403bdcc0]
call fcn.140270070
test eax, eax
jne 0x140006820
mov r8d, 1
mov edx, 0xffffffec
mov rcx, qword [rbp + 8]
call fcn.1402796f0
mov r9, qword [rbp + 8]
mov r8d, 4
mov edx, 1
lea rcx, [rbp + 0x28]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
mov ecx, dword [rbp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbp + 0x28], eax
mov rcx, qword [rbp + 8]
call fcn.140274838
sub eax, 4
sub eax, dword [rbp + 0x28]
mov dword [rbp], eax
jmp 0x14000682c
mov rcx, qword [rbp + 8]
call fcn.140274838
mov dword [rbp], eax
lea rcx, [rbp + 0x50]
call fcn.140162970
mov eax, dword [rbp]
mov dword [rbp + 4], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.1402796f0
cmp dword [rbp + 0x14], 0
je 0x140006949
mov eax, dword [rbp + 0x14]
add eax, 4
mov eax, eax
mov r9, qword [rbp + 8]
mov r8d, eax
mov edx, 1
lea rcx, [0x1403bdcc0]
call fcn.14027bacc
mov qword [rbp + 0x20], rax
mov eax, dword [rbp + 0x14]
lea rcx, [0x1403bdcc0]
add rcx, rax
mov rax, rcx
mov ecx, 4
imul rcx, rcx, 0
mov dword [rax + rcx], 0
mov r8, qword [rbp + 0x20]
lea rdx, [0x1403bdcc0]
lea rcx, [rbp + 0x50]
call fcn.140162a00
cmp dword [rbp], 0
jbe 0x1400068be
mov eax, dword [rbp + 0x20]
mov ecx, dword [rbp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x30]
add eax, 8
mov ecx, dword [rbp + 0x14]
add ecx, 4
sub eax, ecx
mov eax, eax
mov r9, qword [rbp + 8]
mov r8d, eax
mov edx, 1
lea rcx, [0x1403bdcc0]
call fcn.14027bacc
mov qword [rbp + 0x20], rax
lea rax, [0x1403bdcc0]
add rax, qword [rbp + 0x20]
mov ecx, 4
imul rcx, rcx, 0
mov dword [rax + rcx - 8], 0
lea rax, [0x1403bdcc0]
add rax, qword [rbp + 0x20]
mov ecx, 4
imul rcx, rcx, 1
mov dword [rax + rcx - 8], 0
mov r8, qword [rbp + 0x20]
lea rdx, [0x1403bdcc0]
lea rcx, [rbp + 0x50]
call fcn.140162a00
cmp dword [rbp], 0
jbe 0x140006949
mov eax, dword [rbp + 0x20]
mov ecx, dword [rbp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
cmp dword [rbp], 0
jne 0x140006959
mov qword [rbp + 0x48], 0x1000
jmp 0x14000697d
mov eax, dword [rbp + 4]
cmp rax, 0x1000
jbe 0x14000696e
mov qword [rbp + 0x40], 0x1000
jmp 0x140006975
mov eax, dword [rbp + 4]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
mov r9, qword [rbp + 8]
mov r8, qword [rbp + 0x48]
mov edx, 1
lea rcx, [0x1403bdcc0]
call fcn.14027bacc
mov qword [rbp + 0x20], rax
cmp qword [rbp + 0x20], 0
jbe 0x1400069d5
mov r8, qword [rbp + 0x20]
lea rdx, [0x1403bdcc0]
lea rcx, [rbp + 0x50]
call fcn.140162a00
cmp dword [rbp], 0
jbe 0x1400069d0
mov eax, dword [rbp + 0x20]
mov ecx, dword [rbp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x1400069d0
jmp 0x1400069d5
jmp 0x140006949
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x158]
call fcn.140162950
mov rcx, qword [rbp + 8]
call fcn.1402793a8
xor eax, eax
mov rcx, qword [rbp + 0x130]
xor rcx, rbp
call fcn.14026d940
lea rsp, [rbp + 0x140]
pop rbp
ret