Function at 0x140163ab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [rdx + 0x138]
mov rdi, rdx
mov rbx, rcx
mov qword [rcx + 0xb8], rax
mov r13d, dword [rdx + 0x34]
mov r12d, dword [rdx + 0x38]
mov qword [rdx + 0x138], 0
mov rax, qword [rcx]
add r12d, r13d
mov qword [rsp + 0x28], rax
movsx eax, word [rdx + 0x120]
mov dword [rsp + 0xa0], r13d
mov dword [rsp + 0x90], eax
mov eax, dword [rdx + 0x80]
mov dword [rsp + 0x98], eax
test r13d, r13d
jne 0x140163b23
test r12d, r12d
jle 0x140163b23
inc r12d
mov eax, dword [rcx + 0x98]
lea ecx, [rax + rax*2]
mov eax, dword [rdx + 0x3c]
lea rdx, [rsp + 0x98]
lea ecx, [rcx*8 + 7]
and ecx, 0xfffffff8
movsxd r15, ecx
sub eax, ecx
add r15, qword [rbx + 0x90]
movsxd rcx, eax
and rcx, 0xfffffffffffffff8
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x38], rcx
mov rcx, rbx
call fcn.140111c20
cmp byte [rdi + 0x20], 0
je 0x140163b76
cmp byte [rdi + 0x21], 0
je 0x140163b76
mov al, 1
jmp 0x140163b78
xor eax, eax
and dword [rbx + 0xd0], 0xffffffbf
movzx eax, al
mov ebp, 1
and eax, 1
shl eax, 6
or dword [rbx + 0xd0], eax
movzx eax, byte [rdi + 0x123]
mov ecx, dword [rbx + 0xd0]
test al, al
je 0x140163dab
movzx eax, al
mov edx, 0xa
cmp r12d, edx
cmovl r12d, edx
shl eax, 2
xor eax, ecx
mov dword [rsp + 0xa8], r12d
and eax, 0xc
xor eax, ecx
mov rcx, rbx
mov dword [rbx + 0xd0], eax
cmp byte [rdi + 0x123], 2
jne 0x140163beb
lea edx, [rbp + 3]
call fcn.140166a20
lea eax, [rbp + 7]
lea edi, [rbp + 0xb]
jmp 0x140163bf9
mov edi, 8
mov edx, edi
call fcn.140166a20
xor eax, eax
movsxd r15, eax
movsxd rax, edi
mov qword [rsp + 0x30], rax
cmp r15, rax
jge 0x140163da6
xor r12d, r12d
lea rax, str.addr
mov ecx, 0x2400
mov r8d, 0x202
lea rdx, [fcn.1401422c0]
nop dword [rax]
mov rsi, qword [rax + r15*8]
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x140163d76
mov rdi, qword [rbx + 0xa0]
add rdi, r12
test rsi, rsi
jne 0x140163c6c
test word [rdi + 8], cx
je 0x140163c63
mov rcx, rdi
call fcn.14017ac20
jmp 0x140163d6b
mov word [rdi + 8], bp
jmp 0x140163d76
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140163c7e
mov r13d, dword [rax + 0x88]
jmp 0x140163c84
mov r13d, 0x3b9aca00
or rbp, 0xffffffffffffffff
nop dword [rax + rax]
inc rbp
cmp byte [rsi + rbp], 0
jne 0x140163c90
movzx r14d, r8w
test word [rdi + 8], cx
jne 0x140163ca9
cmp dword [rdi + 0x20], 0
je 0x140163cb8
mov rcx, rdi
call fcn.14017ab50
lea rdx, [fcn.1401422c0]
mov qword [rdi + 0x10], rsi
test rdx, rdx
jne 0x140163d0d
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x18], rsi
test rax, rax
je 0x140163cff
cmp rsi, qword [rax + 0x1f0]
jae 0x140163cff
cmp rsi, qword [rax + 0x1e0]
jb 0x140163cea
mov eax, pe_nt_image_headers64
mov dword [rdi + 0x20], eax
jmp 0x140163d1b
cmp rsi, qword [rax + 0x1e8]
jb 0x140163cff
movzx eax, word [rax + 0x1a6]
mov dword [rdi + 0x20], eax
jmp 0x140163d1b
mov rcx, rsi
call qword [0x140288b88]
mov dword [rdi + 0x20], eax
jmp 0x140163d1b
mov qword [rdi + 0x30], 0
mov r14d, 0xa02
mov eax, ebp
mov word [rdi + 8], r14w
mov byte [rdi + 0xa], 1
btr eax, 0x1f
mov dword [rdi + 0xc], eax
movsxd rax, r13d
cmp rbp, rax
jle 0x140163d66
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140163d66
mov rax, qword [rax + 0x160]
mov ebp, 1
mov ecx, 0x2400
mov r8d, 0x202
test rax, rax
je 0x140163d76
inc dword [rax + 0x30]
mov dword [rax + 0x18], reloc.WS2_32.dll_select
jmp 0x140163d76
mov ebp, 1
mov ecx, 0x2400
mov r8d, 0x202
inc r15
add r12, 0x38
lea rax, str.addr
lea rdx, [fcn.1401422c0]
cmp r15, qword [rsp + 0x30]
jl 0x140163c30
mov r12d, dword [rsp + 0xa8]
mov r13d, dword [rsp + 0xa0]
mov r15, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
and dword [rbx + 0xd0], 0xfffffffc
xor r9d, r9d
movsxd rax, r12d
mov edi, r9d
mov ecx, r9d
imul rsi, rax, 0x38
add rsi, 7
and rsi, 0xfffffffffffffff8
cmp rsi, rdx
jg 0x140163ddd
sub rdx, rsi
lea rcx, [rdx + r15]
jmp 0x140163de0
mov rdi, rsi
movsxd r8, dword [rsp + 0x90]
mov qword [rbx + 0x70], rcx
mov rcx, r9
imul rbp, r8, 0x38
add rbp, 7
and rbp, 0xfffffffffffffff8
cmp rbp, rdx
jg 0x140163e09
sub rdx, rbp
lea rcx, [rdx + r15]
jmp 0x140163e0c
add rdi, rbp
movsxd rax, dword [rsp + 0x98]
mov qword [rbx + 0x88], rcx
mov rcx, r9
lea r14, [rax*8 + 7]
and r14, 0xfffffffffffffff8
cmp r14, rdx
jg 0x140163e38
sub rdx, r14
lea rcx, [rdx + r15]
jmp 0x140163e3b
add rdi, r14
movsxd rax, r13d
mov qword [rbx + 0x78], rcx
mov rcx, r9
lea r13, [rax*8]
lea r15, [r13 + 7]
and r15, 0xfffffffffffffff8
cmp r15, rdx
jg 0x140163e67
mov rcx, qword [rsp + 0x20]
sub rdx, r15
add rcx, rdx
jmp 0x140163e6a
add rdi, r15
mov qword [rbx + 0x80], rcx
test rdi, rdi
je 0x140163f17
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
call fcn.140124e60
mov qword [rbx + 0x108], rax
mov rcx, rax
mov rax, qword [rsp + 0x28]
cmp byte [rax + 0x67], 0
jne 0x140163f0c
mov rax, qword [rbx + 0x70]
test rax, rax
jne 0x140163eb1
cmp rsi, rdi
jg 0x140163eb1
sub rdi, rsi
lea rax, [rdi + rcx]
mov qword [rbx + 0x70], rax
mov rax, qword [rbx + 0x88]
test rax, rax
jne 0x140163ecd
cmp rbp, rdi
jg 0x140163ecd
sub rdi, rbp
lea rax, [rdi + rcx]
mov qword [rbx + 0x88], rax
mov rax, qword [rbx + 0x78]
test rax, rax
jne 0x140163ee9
cmp r14, rdi
jg 0x140163ee9
sub rdi, r14
lea rax, [rdi + rcx]
mov qword [rbx + 0x78], rax
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x140163f05
cmp r15, rdi
jg 0x140163f05
sub rdi, r15
lea rax, [rdi + rcx]
mov qword [rbx + 0x80], rax
mov r8d, dword [rsp + 0x90]
xor r9d, r9d
mov rcx, qword [rsp + 0x28]
mov edi, 1
cmp byte [rcx + 0x67], 0
je 0x140163f39
mov word [rbx + 0x20], r9w
mov qword [rbx + 0x28], 0
jmp 0x140163fbb
mov eax, dword [rsp + 0xa0]
mov word [rbx + 0x20], r8w
mov dword [rbx + 0x2c], eax
mov rax, qword [rbx + 0x88]
test r8d, r8d
jle 0x140163f77
add rax, 8
nop dword [rax + rax]
dec r8d
mov qword [rax + 0x20], rcx
mov word [rax], di
mov dword [rax + 0x18], r9d
lea rax, [rax + 0x38]
test r8d, r8d
jg 0x140163f60
mov rax, qword [rbx + 0x70]
mov dword [rbx + 0x28], r12d
test r12d, r12d
jle 0x140163fa7
add rax, 8
mov edx, pe_nt_image_headers64
nop dword [rax]
dec r12d
mov qword [rax + 0x20], rcx
mov word [rax], dx
mov dword [rax + 0x18], r9d
lea rax, [rax + 0x38]
test r12d, r12d
jg 0x140163f90
mov rcx, qword [rbx + 0x80]
mov r8, r13
xor edx, edx
call sub.msvcrt.dll_memset
xor r9d, r9d
mov dword [rbx + 0x24], 0x2df20da3
mov dword [rbx + 0x34], 0xffffffff
mov dword [rbx + 0x38], r9d
mov word [rbx + 0xca], 0xff02
mov qword [rbx + 0x40], r9
mov dword [rbx + 0x30], edi
mov dword [rbx + 0x48], r9d
mov qword [rbx + 0x58], r9
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret