Function at 0x140081a50
Capabilities:
Inspect section memory permissions

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [r11 + 8], rcx
push rsi
push rdi
push r12
push r14
sub rsp, 0xa8
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov esi, dword [r11 + 0x10]
mov r14, rcx
mov r12, r8
test r8, r8
je 0x140081ee8
xor edi, edi
mov qword [r8], rdi
test rcx, rcx
je 0x140081ee8
cmp word [rcx], di
je 0x140081ee8
lea rdx, [0x1401f1fd5]
mov qword [r11 - 0x28], rbx
lea ecx, [rdi + 0x10]
call fcn.140144e3c
mov rbx, rax
test rax, rax
jne 0x140081aea
lea eax, [rdi + 8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140144310
add rsp, 0xa8
pop r14
pop r12
pop rdi
pop rsi
ret
mov qword [rax], 0xffffffffffffffff
mov r8d, 5
mov dword [rax + 8], 2
cmp word [r14], 0x2a
mov qword [rsp + 0x68], rdi
jne 0x140081b56
lea rcx, [r14 + 2]
lea rdx, str.FILE:
call fcn.14017d224
test eax, eax
jne 0x140081b50
lea rcx, [r14 + 0xc]
xor edx, edx
lea r8d, [rax + 0x10]
call fcn.1401692f0
cmp rax, 0xffffffffffffffff
je 0x140081b50
mov rcx, rbx
mov dword [rbx + 8], 0x10002
mov qword [rbx], rax
call fcn.140081f90
xor eax, eax
mov qword [r12], rbx
jmp 0x140081ac7
mov r8d, 5
mov ecx, esi
mov qword [rsp + 0x98], rbp
shr ecx, 3
and ecx, 0x80
mov qword [rsp + 0x88], r15
mov edx, ecx
mov dword [rsp + 0x60], edi
bts edx, 8
mov r15d, edi
bt esi, 0xb
cmovae edx, ecx
mov ecx, edx
bts ecx, 0x1f
test sil, 1
cmove ecx, edx
mov edx, ecx
bts edx, 0x1d
bt esi, 8
cmovae edx, ecx
mov ecx, edx
bts ecx, 0x10
bt esi, 9
cmovae ecx, edx
mov r10d, ecx
or r10d, 4
test sil, 0x80
cmove r10d, ecx
test sil, 2
je 0x140081bc8
bts r10d, 0x1e
jmp 0x140081bd6
test sil, 4
je 0x140081bd6
mov r15d, r10d
bts r10d, 8
mov ecx, esi
mov qword [rsp + 0x90], r13
and ecx, 0x20000000
mov ebp, r15d
test sil, 8
je 0x140081c08
mov eax, ecx
mov r11d, 2
neg eax
sbb r13d, r13d
add r13d, 2
test ecx, ecx
cmove r11d, r8d
jmp 0x140081c22
test ecx, ecx
je 0x140081c18
mov r13d, 4
lea r11d, [r13 - 1]
jmp 0x140081c22
mov r13d, 3
lea r11d, [r13 - 2]
mov ecx, esi
mov r9d, esi
shr ecx, 4
and ecx, 1
mov edx, ecx
or edx, 2
test sil, 0x20
cmove edx, ecx
mov ecx, edx
or ecx, 4
test sil, 0x40
cmove ecx, edx
sar r9d, 0x1f
mov eax, r9d
mov dword [rsp + 0x64], ecx
and r9d, 0x4000000
and eax, 0x1000
mov r8d, r9d
mov edx, eax
bts edx, 0xe
bt esi, 0x1c
cmovae edx, eax
bts r8d, 0x19
bt esi, 0x1c
mov ecx, edx
mov eax, esi
cmovae r8d, r9d
or ecx, 1
bt esi, 0x1b
cmovae ecx, edx
mov edx, r8d
bts edx, 0x19
bt esi, 0x1b
cmovae edx, r8d
mov r8d, ecx
bts r8d, 0x15
mov r9d, edx
bt esi, 0x12
cmovae r8d, ecx
bts r9d, 0x15
bt esi, 0x12
mov ecx, r8d
cmovae r9d, edx
mov edi, r9d
and eax, 0x7000000
je 0x140081cf4
cmp eax, 0x4000000
je 0x140081d1e
cmp eax, 0x5000000
je 0x140081d14
cmp eax, 0x6000000
je 0x140081ced
mov r9d, dword [rsp + 0x60]
cmp eax, 0x7000000
jne 0x140081cf9
bts edi, 0x1f
or ecx, 2
jmp 0x140081cf9
bts edi, 0x1b
or ecx, 4
mov r9d, dword [rsp + 0x60]
bt esi, 0x10
jb 0x140081d29
bts r15d, 0x14
bts r10d, 0x14
or ecx, 0x20
test ebp, ebp
cmove r15d, ebp
jmp 0x140081d2d
bts edi, 0x1c
bts ecx, 0xb
jmp 0x140081cf4
mov r9d, 0x2100
or edi, r9d
jmp 0x140081cf9
bts edi, 0x1e
mov edx, ecx
bts edx, 8
test esi, 0xc000
cmove edx, ecx
je 0x140081dd0
cmp qword [0x14024d740], 0
je 0x140081dd0
cmp qword [0x14024d750], 0
je 0x140081dd0
cmp qword [0x14024d728], 0
je 0x140081dd0
cmp qword [0x14024d730], 0
je 0x140081dd0
mov r8d, dword [rsp + 0x64]
mov rcx, r14
mov dword [rsp + 0x50], r9d
mov r9d, esi
mov dword [rsp + 0x48], edx
xor edx, edx
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], r8d
lea r8, [rsp + 0x68]
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], rbx
call fcn.1400814d0
mov ebp, eax
test eax, eax
je 0x140081ec5
mov rax, qword [0x14024d748]
test rax, rax
je 0x140081e65
mov ecx, ebp
call qword [case.0x1400cd6b1.0]
mov ebp, eax
jmp 0x140081e61
test esi, 0x600000
je 0x140081de2
mov ebp, 0x78
jmp 0x140081e65
mov r8d, dword [rsp + 0x64]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edx, r10d
mov dword [rsp + 0x28], edi
mov rcx, r14
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140081e74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 5
jne 0x140081e5c
test r15d, r15d
je 0x140081e65
mov r8d, dword [rsp + 0x64]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edx, r15d
mov dword [rsp + 0x28], edi
mov rcx, r14
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140081e74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x140081e61
cmp eax, 0x20
je 0x140081e65
test ebp, ebp
je 0x140081ec5
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.140144330
jmp 0x140081ec9
cmp r13d, 1
je 0x140081e8f
lea eax, [r13 - 2]
test eax, 0xfffffffd
jne 0x140081e93
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140081e93
or byte [rbx + 0xb], 4
and esi, 0x40020000
cmp esi, 0x40000000
jne 0x140081eb5
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, rbx
mov qword [rbx], rbp
mov rcx, r14
call fcn.1400813e0
xor ebp, ebp
mov qword [r12], rbx
mov r15, qword [rsp + 0x88]
mov eax, ebp
mov rbp, qword [rsp + 0x98]
mov r13, qword [rsp + 0x90]
jmp 0x140081ac7
mov eax, 0x57
jmp 0x140081acf