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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r13
sub rsp, 0x70
mov rbp, qword [rcx]
xor ebx, ebx
mov r13d, r9d
mov rsi, rdx
mov r9, rcx
mov qword [rsp + 0x50], rbp
mov r12d, ebx
mov dword [rsp + 0x5c], ebx
mov dword [rsp + 0x58], ebx
cmp qword [rcx + 0x190], rbx
jne 0x1800a69c3
cmp qword [r8 + 0x68], rbx
jne 0x1800a69c3
cmp byte [rdx + 0x3f], 1
jne 0x1800a69d1
xor eax, eax
add rsp, 0x70
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
cmp r13d, 0xb
jne 0x1800a69ee
cmp word [rdx + 0x34], bx
jl 0x1800a69e8
movzx r13d, byte [rdx + 0x3e]
cmp r13d, 0xb
jne 0x1800a69ee
mov r13d, 2
mov rcx, qword [r8 + 0x28]
cmp dword [rcx], 1
jne 0x1800a69c3
cmp qword [rcx + 0x30], rbx
jne 0x1800a69c3
cmp qword [r8 + 0x30], rbx
jne 0x1800a69c3
cmp qword [r8 + 0x48], rbx
jne 0x1800a69c3
cmp qword [r8 + 0x38], rbx
jne 0x1800a69c3
cmp qword [r8 + 0x60], rbx
jne 0x1800a69c3
cmp qword [r8 + 0x50], rbx
jne 0x1800a69c3
test byte [r8 + 4], 1
jne 0x1800a69c3
mov rax, qword [r8 + 0x20]
cmp dword [rax], 1
jne 0x1800a69c3
mov rax, qword [rax + 8]
cmp byte [rax], 0xb4
jne 0x1800a69c3
lea r8, [rcx + 8]
xor edx, edx
mov rcx, r9
call fcn.18008dd50
mov qword [rsp + 0x40], rax
mov r9, rax
test rax, rax
je 0x1800a69c3
mov eax, dword [rsi + 0x28]
cmp dword [r9 + 0x28], eax
jne 0x1800a6a6a
mov rax, qword [rsi + 0x60]
cmp qword [r9 + 0x60], rax
je 0x1800a69c3
mov r8d, dword [r9 + 0x30]
mov eax, r8d
mov edx, dword [rsi + 0x30]
mov ecx, edx
shr ecx, 7
shr eax, 7
not ecx
not eax
xor ecx, eax
test cl, 1
jne 0x1800a69c3
cmp byte [r9 + 0x3f], bl
jne 0x1800a69c3
movzx ecx, word [rsi + 0x36]
cmp cx, word [r9 + 0x36]
jne 0x1800a69c3
movzx eax, word [r9 + 0x34]
cmp word [rsi + 0x34], ax
jne 0x1800a69c3
bt edx, 0x10
jae 0x1800a6ac4
bt r8d, 0x10
jae 0x1800a69c3
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], r15
mov r15d, ebx
cmp bx, cx
jge 0x1800a6c1c
mov rbp, rbx
mov r14, rbx
nop
mov rbx, qword [rsi + 8]
mov rdi, qword [r9 + 8]
add rbx, r14
add rdi, r14
movzx ecx, word [rbx + 0x12]
movzx eax, word [rdi + 0x12]
and cx, 0x60
and ax, 0x60
cmp cx, ax
jne 0x1800a73df
test cx, cx
je 0x1800a6b4b
mov rdx, rbx
mov rcx, rsi
call fcn.18008e670
mov rdx, rdi
mov rcx, r9
mov r8, rax
call fcn.18008e670
mov rdx, rax
xor ecx, ecx
or r9d, 0xffffffff
call fcn.180083c80
test eax, eax
jne 0x1800a73df
movzx eax, byte [rdi + 0xc]
cmp byte [rbx + 0xc], al
jne 0x1800a73df
mov rcx, rdi
call fcn.18008e7f0
mov rcx, rbx
mov r8, rax
call fcn.18008e7f0
mov rcx, rax
mov rdx, r8
call fcn.18003cb20
test eax, eax
jne 0x1800a73df
test byte [rbx + 8], 0xf
je 0x1800a6b8e
test byte [rdi + 8], 0xf
je 0x1800a73df
test byte [rbx + 0x12], 0x60
jne 0x1800a6bfb
test rbp, rbp
jle 0x1800a6bfb
mov rdx, rbx
mov rcx, rsi
call fcn.18008e670
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
mov r8, rax
call fcn.18008e670
xor ecx, ecx
mov r9, rax
test rax, rax
sete cl
xor eax, eax
test r8, r8
sete al
cmp eax, ecx
jne 0x1800a73df
test r8, r8
je 0x1800a6bfb
mov rax, qword [r8 + 8]
mov r8, qword [r9 + 8]
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800a6bf3
inc rax
test ecx, ecx
jne 0x1800a6be0
test edx, edx
jne 0x1800a73df
movsx eax, word [rsi + 0x36]
inc r15d
mov r9, qword [rsp + 0x40]
inc rbp
add r14, 0x18
cmp r15d, eax
jl 0x1800a6af0
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsi + 0x10]
mov eax, 1
test rdi, rdi
je 0x1800a6cad
nop
cmp byte [rdi + 0x62], 0
mov rbx, qword [r9 + 0x10]
cmovne r12d, eax
test rbx, rbx
je 0x1800a73df
mov rdx, rbx
mov rcx, rdi
call fcn.1800a6860
test eax, eax
jne 0x1800a6c62
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1800a6c45
jmp 0x1800a73e8
mov eax, dword [rdi + 0x58]
mov r9, qword [rsp + 0x40]
cmp dword [rbx + 0x58], eax
jne 0x1800a6c9d
mov rax, qword [rsi + 0x60]
cmp qword [r9 + 0x60], rax
jne 0x1800a6c9d
mov rax, qword [0x1801f99c0]
test rax, rax
je 0x1800a73df
mov ecx, 0x19b
call rax
test eax, eax
je 0x1800a73df
mov r9, qword [rsp + 0x40]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
je 0x1800a6cad
mov eax, 1
jmp 0x1800a6c30
mov rdx, qword [rsi + 0x20]
test rdx, rdx
je 0x1800a6ccb
mov rcx, qword [r9 + 0x20]
or r8d, 0xffffffff
call fcn.180083f20
test eax, eax
jne 0x1800a73df
mov rax, qword [rbp + 0x30]
bt rax, 0xe
jae 0x1800a6ce1
cmp qword [rsi + 0x48], 0
jne 0x1800a73df
movabs rcx, 0x100000000
test rcx, rax
jne 0x1800a73df
mov rdi, qword [rsp + 0x40]
mov rcx, rbp
mov rdx, qword [rdi + 0x60]
call fcn.1800ae790
mov r15, qword [rsp + 0xa0]
mov ebx, eax
mov dword [rsp + 0x48], eax
mov r14, qword [r15 + 0x10]
test r14, r14
jne 0x1800a6d3e
cmp qword [r15 + 0xa8], r14
jne 0x1800a6d33
mov rax, qword [r15]
test byte [rax + 0x60], 8
jne 0x1800a6d33
mov byte [r15 + 0x23], 1
mov rcx, r15
call fcn.1800601c0
mov r14, rax
mov rax, qword [r15 + 0xa8]
mov rcx, r15
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x7c]
bt eax, ebx
jb 0x1800a6d67
bts eax, ebx
mov dword [rcx + 0x7c], eax
cmp ebx, 1
jne 0x1800a6d67
call fcn.180096590
mov ebx, dword [r15 + 0x34]
mov r8, rsi
mov edx, dword [rsp + 0xc0]
mov rcx, r15
mov dword [rsp + 0x3c], ebx
inc ebx
mov dword [rsp + 0x30], ebx
lea eax, [rbx + 1]
mov dword [r15 + 0x34], eax
call fcn.1800a2300
mov ebp, eax
movzx eax, byte [r15 + 0x1f]
test al, al
jne 0x1800a6da3
inc dword [r15 + 0x38]
mov eax, dword [r15 + 0x38]
jmp 0x1800a6db4
dec al
movzx eax, al
mov byte [r15 + 0x1f], al
mov eax, dword [r15 + rax*4 + 0xe0]
xor r8d, r8d
mov dword [rsp + 0x38], eax
mov r9d, eax
mov rcx, r14
lea edx, [r8 + 0x4b]
call fcn.180060900
movzx eax, byte [r15 + 0x1f]
test al, al
jne 0x1800a6ddd
inc dword [r15 + 0x38]
mov eax, dword [r15 + 0x38]
jmp 0x1800a6dee
dec al
movzx eax, al
mov byte [r15 + 0x1f], al
mov eax, dword [r15 + rax*4 + 0xe0]
mov r8d, dword [rsp + 0xc0]
mov r9, rsi
mov edx, ebx
mov dword [rsp + 0x34], eax
mov rcx, r15
mov dword [rsp + 0x20], WSAStartup
call fcn.1800a19a0
mov rax, qword [rsp + 0x50]
test byte [rax + 0x2c], 4
jne 0x1800a6e69
cmp word [rsi + 0x34], 0
jge 0x1800a6e28
cmp qword [rsi + 0x10], 0
jne 0x1800a6e36
test r12d, r12d
jne 0x1800a6e36
lea eax, [r13 - 1]
cmp eax, 1
jbe 0x1800a6e69
xor r9d, r9d
mov r8d, ebx
mov rcx, r14
lea edx, [r9 + 0x24]
call fcn.180060900
mov edx, 9
mov rcx, r14
mov ebx, eax
call fcn.180060820
mov edx, ebx
mov dword [rsp + 0x5c], eax
mov rcx, r14
call fcn.180061600
mov ebx, dword [rsp + 0x30]
test byte [rdi + 0x30], 0x80
jne 0x1800a7083
mov r12d, dword [rsp + 0x3c]
mov r9, rdi
mov r8d, dword [rsp + 0x48]
mov edx, r12d
mov rcx, r15
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSASetLastError
call fcn.1800a19a0
xor r9d, r9d
mov r8d, r12d
mov rcx, r14
lea edx, [r9 + 0x24]
call fcn.180060900
cmp word [rsi + 0x34], 0
mov dword [rsp + 0x58], eax
jl 0x1800a6f1a
mov r9d, dword [rsp + 0x34]
mov r8d, r12d
mov edx, 0x87
mov rcx, r14
call fcn.180060900
mov edi, eax
mov rax, qword [rsp + 0x50]
test byte [rax + 0x2c], 4
jne 0x1800a6f06
mov eax, dword [rsp + 0x34]
xor r9d, r9d
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov rcx, r14
lea edx, [r9 + 0x1f]
call fcn.180060970
mov r8, rsi
mov edx, r13d
mov rcx, r15
mov ebx, eax
call fcn.180096af0
mov edx, ebx
mov rcx, r14
call fcn.180061600
mov r13d, dword [rsp + 0x34]
mov edx, ebp
mov r8d, r13d
mov rcx, r15
call fcn.1800a2640
jmp 0x1800a6f66
cmp qword [rsi + 0x10], 0
jne 0x1800a6f4c
mov rax, qword [rsp + 0x50]
test byte [rax + 0x2c], 8
jne 0x1800a6f4c
mov r13d, dword [rsp + 0x34]
mov edx, 0x7f
mov ebp, dword [rsp + 0x30]
mov r9d, r13d
mov r8d, ebp
mov rcx, r14
call fcn.180060900
mov edi, eax
jmp 0x1800a6f6a
mov r13d, dword [rsp + 0x34]
mov r8d, r12d
mov r9d, r13d
mov edx, 0x87
mov rcx, r14
call fcn.180060900
mov edi, eax
mov ebp, dword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
test byte [rax + 0x2c], 4
je 0x1800a6f8c
mov r8d, ebp
mov edx, 0x89
mov rcx, r14
call fcn.180060890
mov ebx, 0x98
jmp 0x1800a6f91
mov ebx, 0xa9
mov r9d, r12d
mov dword [rsp + 0x20], r13d
mov r8d, ebp
mov edx, 0x81
mov rcx, r14
call fcn.180060970
mov r9d, dword [rsp + 0x38]
mov r8d, ebp
mov edx, 0x80
mov dword [rsp + 0x20], r13d
mov rcx, r14
call fcn.180060970
mov rax, qword [rsp + 0x50]
test byte [rax + 0x2c], 4
jne 0x1800a7022
mov rcx, qword [r14]
cmp byte [rcx + 0x67], 0
je 0x1800a6fe6
mov r8, rsi
mov edx, 0xfffffffb
call fcn.1800618f0
jmp 0x1800a7022
mov eax, dword [r14 + 0x90]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [r14 + 0x88]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x1800a701a
mov r9d, 0xfffffffb
mov r8, rsi
mov rcx, r14
call fcn.180061af0
jmp 0x1800a7022
mov qword [rdx + 0x10], rsi
mov byte [rdx + 1], 0xfb
mov eax, dword [r14 + 0x90]
test eax, eax
jle 0x1800a7042
dec eax
movsxd rcx, eax
mov rax, qword [r14 + 0x88]
lea rdx, [rcx + rcx*2]
mov word [rax + rdx*8 + 2], bx
mov r9d, edi
mov r8d, r12d
mov edx, 0x27
mov rcx, r14
call fcn.180060900
xor r9d, r9d
mov r8d, r12d
mov rcx, r14
lea edx, [r9 + 0x7a]
call fcn.180060900
xor r9d, r9d
mov r8d, ebp
mov rcx, r14
lea edx, [r9 + 0x7a]
call fcn.180060900
mov rdi, qword [rsp + 0x40]
jmp 0x1800a7106
movsxd r10, dword [rsp + 0xc0]
cmp r10d, 1
je 0x1800a70c4
mov rax, qword [r15]
mov rdx, r10
shl rdx, 5
mov rcx, qword [rax + 0x20]
mov rax, qword [rdx + rcx + 8]
cmp byte [rax + 0x11], 0
je 0x1800a70c4
mov rax, qword [rsi]
mov r9b, 1
mov r8d, dword [rsi + 0x28]
mov edx, r10d
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.18008cf00
movsxd r10, dword [rsp + 0x48]
cmp r10d, 1
je 0x1800a7102
mov rax, qword [r15]
mov rdx, r10
shl rdx, 5
mov rcx, qword [rax + 0x20]
mov rax, qword [rdx + rcx + 8]
cmp byte [rax + 0x11], 0
je 0x1800a7102
mov rax, qword [rdi]
xor r9d, r9d
mov r8d, dword [rdi + 0x28]
mov edx, r10d
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.18008cf00
mov ebp, dword [rsp + 0x30]
mov r13, qword [rsi + 0x10]
test r13, r13
je 0x1800a7345
mov rbx, qword [rdi + 0x10]
xor r12b, r12b
test rbx, rbx
je 0x1800a7138
nop
mov rdx, rbx
mov rcx, r13
call fcn.1800a6860
test eax, eax
jne 0x1800a7138
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1800a7120
mov eax, dword [rsp + 0x48]
mov edx, reloc.WS2_32.dll_WSASetLastError
mov esi, dword [rsp + 0x3c]
mov rcx, r14
mov r9d, dword [rbx + 0x58]
mov r8d, esi
mov dword [rsp + 0x20], eax
call fcn.180060970
mov rdx, rbx
mov rcx, r15
call fcn.180061ca0
mov eax, dword [rsp + 0xc0]
mov r8d, ebp
mov r9d, dword [r13 + 0x58]
mov edx, WSAStartup
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.180060970
mov rdx, r13
mov rcx, r15
call fcn.180061ca0
mov eax, dword [r14 + 0x90]
test eax, eax
jle 0x1800a71b2
dec eax
movsxd rcx, eax
mov rax, qword [r14 + 0x88]
lea rdx, [rcx + rcx*2]
mov ecx, 1
mov word [rax + rdx*8 + 2], cx
xor r9d, r9d
mov r8d, esi
mov rcx, r14
lea edx, [r9 + 0x24]
call fcn.180060900
mov esi, eax
mov rax, qword [rsp + 0x50]
test byte [rax + 0x2c], 4
je 0x1800a7273
movzx ebp, word [rbx + 0x60]
xor edi, edi
xor r11d, r11d
test ebp, ebp
je 0x1800a7227
mov r10, qword [rbx + 0x40]
lea r15, [0x1801a39a8]
nop dword [rax]
mov r9, qword [r10]
test r9, r9
je 0x1800a721f
mov r8, r15
sub r9, r15
nop
movzx eax, byte [r8]
movzx ecx, byte [r9 + r8]
cmp eax, ecx
jne 0x1800a725b
test eax, eax
jne 0x1800a726e
inc edi
inc r11
add r10, 8
cmp r11, rbp
jl 0x1800a71f0
mov r15, qword [rsp + 0xa0]
cmp edi, ebp
mov ebp, dword [rsp + 0x30]
jne 0x1800a7291
mov r8d, ebp
mov edx, 0x89
mov rcx, r14
mov r12b, 0x90
call fcn.180060890
mov ebx, dword [rsp + 0x3c]
mov r8d, ebp
mov r9d, ebx
mov edx, 0x81
mov rcx, r14
call fcn.180060900
jmp 0x1800a72b3
lea rbx, [0x1801a4bc0]
movzx edx, byte [rcx + rbx]
movzx eax, byte [rax + rbx]
cmp eax, edx
jne 0x1800a721f
inc r8
jmp 0x1800a7200
test byte [rdi + 0x30], 0x80
je 0x1800a7291
movzx eax, byte [r13 + 0x64]
and al, 3
movzx r12d, r12b
cmp al, 2
mov eax, 1
cmove r12d, eax
jmp 0x1800a7296
mov eax, 1
mov ebx, dword [rsp + 0x3c]
mov edx, 0x86
mov r9d, dword [rsp + 0x38]
mov r8d, ebx
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.180060970
mov r9d, dword [rsp + 0x38]
mov r8d, ebp
mov edx, 0x8a
mov rcx, r14
call fcn.180060900
mov eax, dword [r14 + 0x90]
test eax, eax
jle 0x1800a72f1
or r12b, 8
dec eax
movzx r8d, r12b
movsxd rcx, eax
mov rax, qword [r14 + 0x88]
lea rdx, [rcx + rcx*2]
mov word [rax + rdx*8 + 2], r8w
lea r9d, [rsi + 1]
mov r8d, ebx
mov edx, 0x27
mov rcx, r14
call fcn.180060900
mov edx, esi
mov rcx, r14
call fcn.180061600
xor r9d, r9d
mov r8d, ebx
mov rcx, r14
lea edx, [r9 + 0x7a]
call fcn.180060900
xor r9d, r9d
mov r8d, ebp
mov rcx, r14
lea edx, [r9 + 0x7a]
call fcn.180060900
mov r13, qword [r13 + 0x28]
mov rdi, qword [rsp + 0x40]
test r13, r13
jne 0x1800a7113
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x1800a7357
mov edx, eax
mov rcx, r14
call fcn.180061600
mov ecx, dword [rsp + 0x34]
test ecx, ecx
je 0x1800a7377
movzx eax, byte [r15 + 0x1f]
cmp al, 8
jae 0x1800a7377
movzx eax, al
mov dword [r15 + rax*4 + 0xe0], ecx
inc byte [r15 + 0x1f]
mov ecx, dword [rsp + 0x38]
test ecx, ecx
je 0x1800a7397
movzx eax, byte [r15 + 0x1f]
cmp al, 8
jae 0x1800a7397
movzx eax, al
mov dword [r15 + rax*4 + 0xe0], ecx
inc byte [r15 + 0x1f]
mov ebx, dword [rsp + 0x5c]
test ebx, ebx
je 0x1800a73e3
cmp qword [r15 + 0xa0], 0
je 0x1800a73b1
mov rcx, r15
call fcn.1800a26b0
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x46]
call fcn.180060900
mov edx, ebx
mov rcx, r14
call fcn.180061600
xor r9d, r9d
mov r8d, ebp
mov rcx, r14
lea edx, [r9 + 0x7a]
call fcn.180060900
xor eax, eax
jmp 0x1800a73e8
mov eax, 1
mov r14, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xb8]
add rsp, 0x70
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret