Function at 0x14021f760
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 0x14021ffee
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 0x14021fedf
mov qword [rax - 0x38], r12
mov qword [rax - 0x40], r13
jmp 0x14021f7e5
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 0x14021f8c1
mov rax, qword [rax + 0x40]
mov rsi, qword [rax + 0x48]
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x24], r15d
je 0x14021f89c
mov rdx, qword [rsp + 0x48]
mov rax, qword [rdx + 8]
test byte [rax + 4], 0x20
je 0x14021f89c
test r10d, r10d
je 0x14021f89c
test r8d, r8d
jne 0x14021f844
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 0x14021f86d
mov r9d, r8d
mov dword [rsp + 0x20], r15d
mov r8d, r10d
mov edx, 0x50
mov rcx, rdi
call fcn.1401a4bb0
jmp 0x14021f89c
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.1401da640
mov rsi, qword [rsp + 0x48]
cmp dword [rsi + 0x18], r15d
jl 0x14021fa9a
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 0x14021f8f5
add r13d, ebp
cmp byte [rsi + 0x1e], r15b
je 0x14021f8fe
add r13d, ebp
inc r13d
cmp r13d, 1
jne 0x14021f92a
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14021f918
inc dword [rbx + 0x38]
mov r12d, dword [rbx + 0x38]
jmp 0x14021f952
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r12d, dword [rbx + rax*4 + 0xe8]
jmp 0x14021f952
mov ecx, dword [rbx + 0x28]
mov r12d, dword [rbx + 0x2c]
cmp r13d, ecx
jg 0x14021f945
lea eax, [r12 + r13]
sub ecx, r13d
mov dword [rbx + 0x2c], eax
mov dword [rbx + 0x28], ecx
jmp 0x14021f952
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.1401d64d0
mov r14d, dword [r14]
cmp byte [rsi + 0x1d], r15b
jne 0x14021f9d5
movsxd rcx, dword [rdi + 0x90]
lea edx, [r14 + r12]
mov r8d, dword [rsi + 0x18]
cmp dword [rdi + 0x94], ecx
jg 0x14021f9a4
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x7e
mov rcx, rdi
call fcn.1401a4bb0
jmp 0x14021f9d2
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 0x14021fa03
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.1401d64d0
mov rsi, qword [rsp + 0x48]
add r14d, ebp
cmp byte [rsi + 0x1e], r15b
je 0x14021fb1b
mov rdx, qword [rsp + 0x48]
mov esi, r12d
cmp byte [rdx + 0x1c], r15b
cmovne esi, dword [rsp + 0x30]
test ebp, ebp
jle 0x14021fb18
lea ebp, [r14 + r12]
mov r14d, dword [rsp + 0x34]
nop
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x14021fa59
mov r9d, ebp
mov dword [rsp + 0x20], r15d
mov r8d, esi
mov edx, 0xb5
mov rcx, rdi
call fcn.1401a4bb0
jmp 0x14021fa86
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 0x14021fa30
mov rsi, qword [rsp + 0x48]
jmp 0x14021fb1b
test r14, r14
je 0x14021fb0e
mov ebp, dword [r14]
mov dword [rsp + 0x34], ebp
cmp ebp, 1
jne 0x14021face
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14021fabc
inc dword [rbx + 0x38]
mov r12d, dword [rbx + 0x38]
jmp 0x14021faf3
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r12d, dword [rbx + rax*4 + 0xe8]
jmp 0x14021faf3
mov ecx, dword [rbx + 0x28]
mov r12d, dword [rbx + 0x2c]
cmp ebp, ecx
jg 0x14021fae7
lea eax, [r12 + rbp]
sub ecx, ebp
mov dword [rbx + 0x2c], eax
mov dword [rbx + 0x28], ecx
jmp 0x14021faf3
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.1401d64d0
jmp 0x14021fb24
mov dword [rsp + 0x34], r15d
mov r12d, r15d
jmp 0x14021fb24
mov rsi, rdx
mov ebp, dword [rsp + 0x30]
mov r14, qword [rsp + 0x50]
cmp dword [rsi + 0x10], r15d
jl 0x14021fb63
test r14, r14
je 0x14021fb63
mov eax, dword [rsp + 0x3c]
test eax, eax
jne 0x14021fb41
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.140190a70
mov dword [rsi + 0x10], eax
cmp dword [rsi + 0x18], r15d
jl 0x14021fc75
movsxd rcx, dword [rdi + 0x90]
lea ebp, [r13 - 1]
add ebp, r12d
lea esi, [r13 - 1]
cmp dword [rdi + 0x94], ecx
jg 0x14021fba0
mov r9d, esi
mov dword [rsp + 0x20], ebp
mov r8d, r12d
mov edx, 0x61
mov rcx, rdi
call fcn.1401a4bb0
jmp 0x14021fbcd
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 0x14021fc19
mov r8d, edx
mov dword [rsp + 0x28], esi
mov edx, 0x8a
mov dword [rsp + 0x20], r12d
mov r9d, ebp
mov rcx, rdi
call fcn.140185fa0
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0xc0]
mov ebp, dword [rsp + 0xb0]
jmp 0x14021fe46
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 0x14021fe46
cmp r13d, dword [rbx + 0x28]
jle 0x14021fe68
mov dword [rbx + 0x28], r13d
mov dword [rbx + 0x2c], r12d
jmp 0x14021fe68
mov rax, qword [rsi + 8]
mov r13d, dword [rsp + 0x34]
test byte [rax + 4], 0x20
je 0x14021fd86
mov rbp, r15
mov esi, r15d
add r14, 8
cmp esi, r13d
jge 0x14021fcb2
mov rdx, qword [r14]
mov rcx, rbx
call fcn.1401d9b80
inc esi
add r14, 0x20
mov rbp, rax
test rax, rax
je 0x14021fc92
jmp 0x14021fcbe
test rbp, rbp
jne 0x14021fcbe
mov rax, qword [rbx]
mov rbp, qword [rax + 0x10]
mov r8d, dword [rsp + 0x38]
test r8d, r8d
jne 0x14021fce2
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x24], r15d
je 0x14021fce2
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 0x14021fd09
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov rcx, rdi
lea edx, [r9 + 0x55]
call fcn.1401a4bb0
mov edx, eax
jmp 0x14021fd33
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 0x14021fd81
test edx, edx
jns 0x14021fd48
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 0x14021fd74
mov r9d, 0xfffffffe
mov r8, rbp
mov rcx, rdi
call fcn.140221b50
jmp 0x14021fd81
test rbp, rbp
je 0x14021fd81
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 0x14021fdc7
mov dword [rsp + 0x20], edx
mov r9d, r12d
mov edx, 0xa2
xor r8d, r8d
mov rcx, rdi
call fcn.1401a4bb0
jmp 0x14021fdf1
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 0x14021fe0b
test byte [rdx + 4], 0x10
je 0x14021fe27
call fcn.1401d27c0
jmp 0x14021fe27
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 0x14021fe46
lea rcx, [rax + rax*2]
movzx edx, r13b
mov rax, qword [rdi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
cmp r13d, 1
jne 0x14021fc5e
test r12d, r12d
je 0x14021fe68
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14021fe68
mov dword [rbx + rax*4 + 0xe8], r12d
inc byte [rbx + 0x1f]
mov edx, dword [rsp + 0x3c]
test edx, edx
je 0x14021fe9b
mov rcx, qword [rdi + 0x18]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x14021fe8b
mov r8d, edx
mov rdx, rdi
call fcn.1401bd9c0
jmp 0x14021fe9b
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 0x14021f7e0
mov edx, dword [rsp + 0x38]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
test edx, edx
je 0x14021fed7
lea rax, [r14 + 0x24]
jmp 0x14021fef3
mov r10d, dword [rsp + 0xb8]
lea rax, [r14 + 0x24]
mov rbp, rax
cmp dword [rax], r15d
je 0x14021ff52
mov edx, r10d
test r10d, r10d
je 0x14021ff52
movsxd r8, dword [rdi + 0x90]
mov rbp, rax
mov dword [rsp + 0x40], r8d
cmp dword [rdi + 0x94], r8d
jg 0x14021ff28
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, edx
mov rcx, rdi
lea edx, [r9 + 0x10]
call fcn.1401a4bb0
mov dword [rsp + 0x40], eax
jmp 0x14021ff52
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 0x14021ff7f
add rsi, 8
mov r8d, dword [r14 + 0xc]
mov rcx, rbx
mov rdx, qword [rsi]
add r8d, r15d
call fcn.1401d6440
inc r15d
lea rsi, [rsi + 0x18]
cmp r15d, dword [rbp]
jl 0x14021ff60
movsxd rcx, dword [rsp + 0x40]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov byte [r14], 0
test ecx, ecx
je 0x14021ffee
mov edx, dword [rdi + 0x90]
lea eax, [rdx - 1]
cmp ecx, eax
jne 0x14021ffba
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 0x14021ffdb
lea rax, [0x14035f3b8]
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