Function at 0x140002bd4
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 [0x1401ff510]
xor rax, rbp
mov qword [rbp + 0x100], rax
mov r12, rdx
mov qword [rbp + 0x10], rdx
mov rdx, rcx
lea r8, [0x1401d5910]
xor ebx, ebx
lea rcx, [rbp]
mov qword [rbp], rbx
call fcn.140163068
mov rcx, qword [rbp]
test rcx, rcx
jne 0x140002c35
lea eax, [rbx + 1]
jmp 0x140002f50
xor r8d, r8d
mov dword [rbp + 8], ebx
xor edx, edx
call fcn.14015f00c
mov r9, qword [rbp]
lea rsi, [0x140203120]
mov r8d, 2
mov rcx, rsi
lea r14d, [r8 - 1]
mov edx, r14d
call fcn.140164440
movzx ecx, word [0x140203120]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x140002f42
mov rcx, qword [rbp]
lea edx, [r14 + 0x3b]
xor r8d, r8d
call fcn.14015f00c
mov r9, qword [rbp]
lea r8d, [r14 + 3]
mov edx, r14d
lea rcx, [rbp + 8]
call fcn.140164440
mov edx, dword [rbp + 8]
xor r8d, r8d
mov rcx, qword [rbp]
call fcn.14015f00c
mov r13d, dword [rbp + 8]
lea r8d, [r14 + 0x17]
mov r9, qword [rbp]
mov edx, r14d
mov rcx, rsi
add r13d, 0x58
call fcn.140164440
cmp dword [0x140203120], 0x4550
jne 0x140002f42
movzx edx, word [0x140203134]
lea rax, [rdx + 0x38]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140002cf9
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14015c3d0
sub rsp, rcx
mov r9d, r14d
mov r8d, 8
lea rcx, [rsp + 0x20]
call fcn.140068570
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.140164440
movzx eax, word [rdi]
cmp eax, 0x10b
je 0x140002d67
cmp eax, 0x20b
jne 0x140002f42
mov eax, dword [rdi + 0x90]
mov edi, ebx
mov r15d, dword [rbp + 8]
test eax, eax
cmovne edi, eax
add r15d, 0xa8
jmp 0x140002d7f
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 0x140002e1e
mov rcx, qword [rbp]
lea edx, [rdi - 0x10]
lea r8d, [rdi + 2]
mov dword [rbp + 0xc], ebx
call fcn.14015f00c
mov r9, qword [rbp]
lea r8d, [rdi + 0x10]
mov rdx, r14
mov rcx, rsi
call fcn.140164440
mov rax, qword [0x140203120]
cmp rax, qword [0x140200110]
jne 0x140002e13
mov rax, qword [0x140203128]
cmp rax, qword [0x140200118]
jne 0x140002e13
mov rcx, qword [rbp]
lea edx, [rdi - 0x14]
mov r8d, r14d
call fcn.14015f00c
mov r9, qword [rbp]
lea r8d, [rdi + 4]
mov rdx, r14
lea rcx, [rbp + 0xc]
call fcn.140164440
mov ecx, dword [rbp + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbp]
mov dword [rbp + 0xc], eax
call fcn.14015ea1c
mov edi, eax
mov eax, 0xfffffffc
sub eax, dword [rbp + 0xc]
add edi, eax
jmp 0x140002e1e
mov rcx, qword [rbp]
call fcn.14015ea1c
mov edi, eax
lea rcx, [rbp + 0x20]
call fcn.1400875b0
mov rcx, qword [rbp]
xor r8d, r8d
xor edx, edx
mov esi, edi
call fcn.14015f00c
test r13d, r13d
je 0x140002eb9
mov r9, qword [rbp]
lea r8d, [r13 + 4]
mov rdx, r14
lea rcx, [0x140203120]
call fcn.140164440
lea rcx, [0x140203120]
mov r8, rax
mov dword [r13 + rcx], ebx
mov rdx, rcx
lea rcx, [rbp + 0x20]
mov r12, rax
call fcn.140087640
test edi, edi
je 0x140002e78
sub esi, r12d
mov r9, qword [rbp]
sub r15d, r13d
lea r13, [0x140203120]
mov rdx, r14
mov rcx, r13
lea r8d, [r15 + 4]
call fcn.140164440
mov r8, rax
lea rcx, [rbp + 0x20]
mov rdx, r13
mov r15, rax
mov qword [rax + r13 - 8], rbx
call fcn.140087640
mov r12, qword [rbp + 0x10]
test edi, edi
je 0x140002ec0
sub esi, r15d
jmp 0x140002ec0
lea r13, [0x140203120]
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.140164440
mov r15, rax
test rax, rax
je 0x140002f34
mov r12d, 0x1000
mov r8, r15
lea rcx, [rbp + 0x20]
mov rdx, r13
call fcn.140087640
test edi, edi
je 0x140002f09
sub esi, r15d
je 0x140002f30
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.140164440
mov r15, rax
test rax, rax
jne 0x140002ef1
mov r12, qword [rbp + 0x10]
lea rdx, [rbp + 0x20]
mov rcx, r12
call fcn.140087590
jmp 0x140002f45
mov ebx, r14d
mov rcx, qword [rbp]
call fcn.14015ec50
mov eax, ebx
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.14015bde0
mov rbx, qword [rbp + 0x160]
lea rsp, [rbp + 0x110]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret