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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
push rbx
push rdi
push r14
push r15
sub rsp, 0x88
mov rdi, qword [rcx + 0x10]
xor r15d, r15d
mov r14, r8
mov r10d, edx
mov rbx, rcx
mov r8d, r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x40], r15d
cmp dword [rcx + 0x30], r15d
jne 0x14021d9ee
mov qword [rax - 0x28], rbp
mov qword [rax - 0x30], rsi
mov rsi, qword [r14 + 0x28]
mov qword [rsp + 0x48], rsi
mov byte [r14], 1
mov dword [rsp + 0xb0], r15d
cmp dword [r14 + 0x30], r15d
jle 0x14021d8df
mov qword [rax - 0x38], r12
mov qword [rax - 0x40], r13
jmp 0x14021d1e5
mov r8d, dword [rsp + 0x38]
mov rax, qword [rsi]
mov r13d, r15d
mov dword [rsp + 0x3c], r15d
mov ebp, r15d
test dword [rax + 4], 0x1000000
mov r14, qword [rax + 0x20]
mov qword [rsp + 0x50], r14
je 0x14021d2c1
mov rax, qword [rax + 0x40]
mov rsi, qword [rax + 0x48]
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x24], r15d
je 0x14021d29c
mov rdx, qword [rsp + 0x48]
mov rax, qword [rdx + 8]
test byte [rax + 4], 0x20
je 0x14021d29c
test r10d, r10d
je 0x14021d29c
test r8d, r8d
jne 0x14021d244
inc dword [rbx + 0x38]
mov r8d, dword [rbx + 0x38]
mov dword [rsp + 0x38], r8d
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x14021d26d
mov r9d, r8d
mov dword [rsp + 0x20], r15d
mov r8d, r10d
mov edx, 0x50
mov rcx, rdi
call fcn.1401a25b0
jmp 0x14021d29c
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x50
mov dword [rax + rcx*8 + 4], r10d
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
dec dword [rbx + 0x44]
mov r9d, reloc.WS2_32.dll_recv
mov r12d, dword [rbx + 0x44]
mov rdx, rsi
mov r8d, r12d
mov dword [rsp + 0x3c], r12d
mov rcx, rbx
call fcn.1401d8040
mov rsi, qword [rsp + 0x48]
cmp dword [rsi + 0x18], r15d
jl 0x14021d49a
mov rax, qword [rsi]
mov ebp, dword [r14]
cmp byte [rsi + 0x1d], r15b
mov dword [rsp + 0x34], ebp
mov rcx, qword [rax + 0x10]
mov r14, qword [rcx + 0x20]
mov eax, dword [r14]
lea r13d, [rax + 1]
cmovne r13d, eax
cmp byte [rsi + 0x1c], r15b
je 0x14021d2f5
add r13d, ebp
cmp byte [rsi + 0x1e], r15b
je 0x14021d2fe
add r13d, ebp
inc r13d
cmp r13d, 1
jne 0x14021d32a
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14021d318
inc dword [rbx + 0x38]
mov r12d, dword [rbx + 0x38]
jmp 0x14021d352
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r12d, dword [rbx + rax*4 + 0xe8]
jmp 0x14021d352
mov ecx, dword [rbx + 0x28]
mov r12d, dword [rbx + 0x2c]
cmp r13d, ecx
jg 0x14021d345
lea eax, [r12 + r13]
sub ecx, r13d
mov dword [rbx + 0x2c], eax
mov dword [rbx + 0x28], ecx
jmp 0x14021d352
mov eax, dword [rbx + 0x38]
lea r12d, [rax + 1]
add eax, r13d
mov dword [rbx + 0x38], eax
xor r9d, r9d
mov dword [rsp + 0x30], r12d
mov r8d, r12d
mov byte [rsp + 0x20], 1
mov rdx, r14
mov rcx, rbx
call fcn.1401d3ed0
mov r14d, dword [r14]
cmp byte [rsi + 0x1d], r15b
jne 0x14021d3d5
movsxd rcx, dword [rdi + 0x90]
lea edx, [r14 + r12]
mov r8d, dword [rsi + 0x18]
cmp dword [rdi + 0x94], ecx
jg 0x14021d3a4
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x7e
mov rcx, rdi
call fcn.1401a25b0
jmp 0x14021d3d2
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x7e
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
inc r14d
cmp byte [rsi + 0x1c], r15b
je 0x14021d403
mov rdx, qword [rsp + 0x50]
lea esi, [r14 + r12]
mov r8d, esi
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rcx, rbx
call fcn.1401d3ed0
mov rsi, qword [rsp + 0x48]
add r14d, ebp
cmp byte [rsi + 0x1e], r15b
je 0x14021d51b
mov rdx, qword [rsp + 0x48]
mov esi, r12d
cmp byte [rdx + 0x1c], r15b
cmovne esi, dword [rsp + 0x30]
test ebp, ebp
jle 0x14021d518
lea ebp, [r14 + r12]
mov r14d, dword [rsp + 0x34]
nop
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x14021d459
mov r9d, ebp
mov dword [rsp + 0x20], r15d
mov r8d, esi
mov edx, 0xb5
mov rcx, rdi
call fcn.1401a25b0
jmp 0x14021d486
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0xb5
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
inc ebp
inc esi
sub r14, 1
jne 0x14021d430
mov rsi, qword [rsp + 0x48]
jmp 0x14021d51b
test r14, r14
je 0x14021d50e
mov ebp, dword [r14]
mov dword [rsp + 0x34], ebp
cmp ebp, 1
jne 0x14021d4ce
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14021d4bc
inc dword [rbx + 0x38]
mov r12d, dword [rbx + 0x38]
jmp 0x14021d4f3
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r12d, dword [rbx + rax*4 + 0xe8]
jmp 0x14021d4f3
mov ecx, dword [rbx + 0x28]
mov r12d, dword [rbx + 0x2c]
cmp ebp, ecx
jg 0x14021d4e7
lea eax, [r12 + rbp]
sub ecx, ebp
mov dword [rbx + 0x2c], eax
mov dword [rbx + 0x28], ecx
jmp 0x14021d4f3
mov eax, dword [rbx + 0x38]
lea r12d, [rax + 1]
add eax, ebp
mov dword [rbx + 0x38], eax
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8d, r12d
mov rdx, r14
mov rcx, rbx
mov ebp, r12d
call fcn.1401d3ed0
jmp 0x14021d524
mov dword [rsp + 0x34], r15d
mov r12d, r15d
jmp 0x14021d524
mov rsi, rdx
mov ebp, dword [rsp + 0x30]
mov r14, qword [rsp + 0x50]
cmp dword [rsi + 0x10], r15d
jl 0x14021d563
test r14, r14
je 0x14021d563
mov eax, dword [rsp + 0x3c]
test eax, eax
jne 0x14021d541
dec dword [rbx + 0x44]
mov eax, dword [rbx + 0x44]
mov dword [rsp + 0x3c], eax
mov r8d, dword [rsi + 0x10]
mov r9d, eax
mov edx, dword [rsp + 0xc8]
mov rcx, rbx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r14
call fcn.14018e470
mov dword [rsi + 0x10], eax
cmp dword [rsi + 0x18], r15d
jl 0x14021d675
movsxd rcx, dword [rdi + 0x90]
lea ebp, [r13 - 1]
add ebp, r12d
lea esi, [r13 - 1]
cmp dword [rdi + 0x94], ecx
jg 0x14021d5a0
mov r9d, esi
mov dword [rsp + 0x20], ebp
mov r8d, r12d
mov edx, 0x61
mov rcx, rdi
call fcn.1401a25b0
jmp 0x14021d5cd
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x61
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r15
mov rdx, qword [rsp + 0x48]
movsxd rcx, dword [rdi + 0x90]
mov edx, dword [rdx + 0x18]
cmp dword [rdi + 0x94], ecx
jg 0x14021d619
mov r8d, edx
mov dword [rsp + 0x28], esi
mov edx, 0x8a
mov dword [rsp + 0x20], r12d
mov r9d, ebp
mov rcx, rdi
call fcn.1401839a0
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0xc0]
mov ebp, dword [rsp + 0xb0]
jmp 0x14021d846
mov r14, qword [rsp + 0xc0]
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], ebp
mov ebp, dword [rsp + 0xb0]
mov dword [rax + rcx*8 + 0x10], esi
mov rsi, qword [rsp + 0x48]
mov dword [rax + rcx*8], 0xfd8a
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 0xc], r12d
jmp 0x14021d846
cmp r13d, dword [rbx + 0x28]
jle 0x14021d868
mov dword [rbx + 0x28], r13d
mov dword [rbx + 0x2c], r12d
jmp 0x14021d868
mov rax, qword [rsi + 8]
mov r13d, dword [rsp + 0x34]
test byte [rax + 4], 0x20
je 0x14021d786
mov rbp, r15
mov esi, r15d
add r14, 8
cmp esi, r13d
jge 0x14021d6b2
mov rdx, qword [r14]
mov rcx, rbx
call fcn.1401d7580
inc esi
add r14, 0x20
mov rbp, rax
test rax, rax
je 0x14021d692
jmp 0x14021d6be
test rbp, rbp
jne 0x14021d6be
mov rax, qword [rbx]
mov rbp, qword [rax + 0x10]
mov r8d, dword [rsp + 0x38]
test r8d, r8d
jne 0x14021d6e2
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x24], r15d
je 0x14021d6e2
inc dword [rbx + 0x38]
mov r8d, dword [rbx + 0x38]
mov dword [rsp + 0x38], r8d
movsxd rdx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], edx
jg 0x14021d709
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov rcx, rdi
lea edx, [r9 + 0x55]
call fcn.1401a25b0
mov edx, eax
jmp 0x14021d733
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x55
mov dword [rax + rcx*8 + 4], r8d
mov qword [rax + rcx*8 + 8], r15
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rdi]
cmp byte [rax + 0x67], r15b
jne 0x14021d781
test edx, edx
jns 0x14021d748
mov edx, dword [rdi + 0x90]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
cmp byte [rax + rcx*8 + 1], r15b
lea rdx, [rax + rcx*8]
je 0x14021d774
mov r9d, 0xfffffffe
mov r8, rbp
mov rcx, rdi
call fcn.14021f550
jmp 0x14021d781
test rbp, rbp
je 0x14021d781
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xfe
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0xc0]
mov ebp, dword [rsp + 0xb0]
movsxd rcx, dword [rdi + 0x90]
mov edx, dword [r14 + 0x20]
add edx, dword [r14 + 0xc]
add edx, ebp
cmp dword [rdi + 0x94], ecx
jg 0x14021d7c7
mov dword [rsp + 0x20], edx
mov r9d, r12d
mov edx, 0xa2
xor r8d, r8d
mov rcx, rdi
call fcn.1401a25b0
jmp 0x14021d7f1
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov qword [rax + rcx*8], 0xa2
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r15
mov rcx, qword [rdi]
mov rdx, qword [rsi + 8]
cmp byte [rcx + 0x67], r15b
je 0x14021d80b
test byte [rdx + 4], 0x10
je 0x14021d827
call fcn.1401d01c0
jmp 0x14021d827
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov byte [rax + rcx*8 - 0x17], 0xf9
mov qword [rax + rcx*8 - 8], rdx
movsxd rax, dword [rdi + 0x90]
test eax, eax
jle 0x14021d846
lea rcx, [rax + rax*2]
movzx edx, r13b
mov rax, qword [rdi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
cmp r13d, 1
jne 0x14021d65e
test r12d, r12d
je 0x14021d868
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14021d868
mov dword [rbx + rax*4 + 0xe8], r12d
inc byte [rbx + 0x1f]
mov edx, dword [rsp + 0x3c]
test edx, edx
je 0x14021d89b
mov rcx, qword [rdi + 0x18]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x14021d88b
mov r8d, edx
mov rdx, rdi
call fcn.1401bb3c0
jmp 0x14021d89b
mov rcx, qword [rcx + 0x50]
mov eax, dword [rdi + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
mov r10d, dword [rsp + 0xb8]
inc ebp
add rsi, 0x20
mov dword [rsp + 0xb0], ebp
mov qword [rsp + 0x48], rsi
cmp ebp, dword [r14 + 0x30]
jl 0x14021d1e0
mov edx, dword [rsp + 0x38]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
test edx, edx
je 0x14021d8d7
lea rax, [r14 + 0x24]
jmp 0x14021d8f3
mov r10d, dword [rsp + 0xb8]
lea rax, [r14 + 0x24]
mov rbp, rax
cmp dword [rax], r15d
je 0x14021d952
mov edx, r10d
test r10d, r10d
je 0x14021d952
movsxd r8, dword [rdi + 0x90]
mov rbp, rax
mov dword [rsp + 0x40], r8d
cmp dword [rdi + 0x94], r8d
jg 0x14021d928
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, edx
mov rcx, rdi
lea edx, [r9 + 0x10]
call fcn.1401a25b0
mov dword [rsp + 0x40], eax
jmp 0x14021d952
lea rcx, [r8 + r8*2]
lea eax, [r8 + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], reloc.WS2_32.dll_recv
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], r15
mov qword [rax + rcx*8 + 0x10], r15
mov rsi, qword [r14 + 0x18]
cmp dword [rbp], r15d
jle 0x14021d97f
add rsi, 8
mov r8d, dword [r14 + 0xc]
mov rcx, rbx
mov rdx, qword [rsi]
add r8d, r15d
call fcn.1401d3e40
inc r15d
lea rsi, [rsi + 0x18]
cmp r15d, dword [rbp]
jl 0x14021d960
movsxd rcx, dword [rsp + 0x40]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov byte [r14], 0
test ecx, ecx
je 0x14021d9ee
mov edx, dword [rdi + 0x90]
lea eax, [rdx - 1]
cmp ecx, eax
jne 0x14021d9ba
mov dword [rdi + 0x90], eax
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rbx
ret
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
je 0x14021d9db
lea rax, [0x14035b3b8]
mov dword [rax + 8], edx
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rbx
ret
mov rax, qword [rdi + 0x88]
lea rcx, [rcx + rcx*2]
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rbx
ret