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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rbx, qword [rcx + 0x10]
mov r14, r8
mov rdi, rcx
mov rsi, qword [rbx + 0x30]
mov edx, dword [rsi + 0x78]
mov dword [rsp + 0x4c], edx
lea eax, [rdx + 1]
mov dword [rsi + 0x78], eax
lea eax, [rdx - 1]
test edx, eax
jne 0x1400a503e
mov rcx, qword [rsi]
lea eax, [rdx*2 + 1]
mov rdx, qword [rsi + 0x80]
movsxd r8, eax
shl r8, 2
call fcn.140045bd0
mov edx, dword [rsp + 0x4c]
mov qword [rsi + 0x80], rax
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x1400a5054
movsxd rax, edx
mov dword [rcx + rax*4], 0xffffffff
mov rsi, qword [rbx + 0x30]
mov r13d, edx
not r13d
mov edx, dword [rsi + 0x78]
mov dword [rsp + 0x44], edx
lea eax, [rdx + 1]
mov dword [rsi + 0x78], eax
lea eax, [rdx - 1]
test edx, eax
jne 0x1400a509a
mov rcx, qword [rsi]
lea eax, [rdx*2 + 1]
mov rdx, qword [rsi + 0x80]
movsxd r8, eax
shl r8, 2
call fcn.140045bd0
mov edx, dword [rsp + 0x44]
mov qword [rsi + 0x80], rax
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x1400a50b0
movsxd rax, edx
mov dword [rcx + rax*4], 0xffffffff
mov rcx, qword [rsp + 0xd0]
mov eax, edx
mov r9d, dword [r14 + 0x14]
not eax
mov r15, qword [r14]
xor esi, esi
mov dword [rsp + 0x40], eax
movzx ebp, byte [rcx]
mov eax, dword [rcx + 4]
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x34], eax
test r9d, r9d
je 0x1400a513b
mov r8d, dword [r14 + 0x10]
lea edx, [rsi + 0x11]
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.140065c50
mov r9d, r13d
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea edx, [rsi + 0x10]
mov rcx, rbx
call fcn.140065c50
mov r9d, dword [r14 + 0x14]
mov eax, r9d
mov r8, qword [rbx + 0x30]
not eax
test eax, eax
js 0x1400a512a
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x1400a512a
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
mov rcx, qword [rsp + 0xd0]
dec eax
mov dword [r8 + 0x64], eax
mov edx, dword [r14 + 0xc]
lea eax, [rbp - 9]
mov dword [rsp + 0x38], edx
test al, 0xfb
je 0x1400a519a
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1400a5167
inc dword [rdi + 0x54]
mov ebp, 1
mov r12d, dword [rdi + 0x54]
inc dword [rdi + 0x54]
mov r14d, dword [rdi + 0x54]
jmp 0x1400a51a8
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0x24]
test al, al
jne 0x1400a5186
inc dword [rdi + 0x54]
mov ebp, 1
mov r14d, dword [rdi + 0x54]
jmp 0x1400a51a8
dec al
mov ebp, 1
movzx eax, al
mov byte [rdi + 0x1f], al
mov r14d, dword [rdi + rax*4 + 0x24]
jmp 0x1400a51a8
mov r14d, dword [rcx + 8]
xor r12d, r12d
mov ebp, dword [rsp + 0xc8]
mov rax, qword [rsp + 0xc0]
mov r15d, dword [r15]
sub r15d, dword [rax + 8]
test byte [rax + 0x1c], 1
je 0x1400a52f4
inc dword [rdi + 0x54]
mov eax, dword [rdi + 0x54]
mov dword [rsp + 0x3c], eax
mov eax, dword [rdi + 0x50]
mov dword [rsp + 0x30], eax
inc eax
mov dword [rdi + 0x50], eax
test r9d, r9d
je 0x1400a524f
mov rsi, qword [rdi + 0x10]
test rsi, rsi
jne 0x1400a522b
mov rcx, rdi
call fcn.140065af0
mov qword [rdi + 0x10], rax
mov rsi, rax
test rax, rax
je 0x1400a5214
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.140065c50
cmp qword [rdi + 0x1c0], 0
jne 0x1400a522b
mov rax, qword [rdi]
test byte [rax + 0x4c], 8
jne 0x1400a522b
mov byte [rdi + 0x23], 1
mov r8d, dword [rdi + 0x5c]
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x20], 0
lea eax, [r8 + 1]
lea edx, [r9 + 0x2c]
mov dword [rdi + 0x5c], eax
call fcn.140065c50
mov esi, eax
mov r9d, dword [rsp + 0x3c]
lea ecx, [r15 + 1]
mov r8d, dword [rsp + 0x30]
add ecx, ebp
mov dword [rsp + 0x20], ecx
mov edx, 0x3c
mov rcx, rbx
call fcn.140065c50
test esi, esi
je 0x1400a5296
mov edx, dword [rbx + 0x3c]
cmp edx, esi
jbe 0x1400a528c
mov eax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
mov r8d, dword [rsp + 0x38]
mov r9d, r13d
mov edx, 0x6a
mov dword [rsp + 0x20], 0
mov rcx, rbx
call fcn.140065c50
mov r8d, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x48], eax
mov rcx, rbx
mov rax, qword [rsp + 0xb8]
mov edx, dword [rax + 0x10]
call fcn.1400a4030
mov eax, dword [rsp + 0x30]
mov edx, 0x64
mov r9d, dword [rsp + 0x3c]
mov rcx, rbx
mov r8d, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
call fcn.140065c50
xor eax, eax
jmp 0x1400a5336
mov r8d, edx
mov dword [rsp + 0x20], esi
mov edx, WSAGetLastError
mov r9d, r13d
mov rcx, rbx
call fcn.140065c50
mov r8d, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x48], eax
mov rcx, rbx
mov rax, qword [rsp + 0xb8]
mov edx, dword [rax + 0x10]
call fcn.1400a4030
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x30], eax
mov eax, 1
test ebp, ebp
jle 0x1400a53b8
mov edi, dword [rsp + 0x30]
sub eax, r14d
mov esi, r14d
lea r13d, [rax + r15]
mov r15d, ebp
nop
movsxd rbp, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
mov ecx, ebp
cmp dword [rax + 0x60], ebp
jg 0x1400a536e
mov rcx, rbx
call fcn.140065ba0
test eax, eax
jne 0x1400a53a8
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx + 1]
mov dword [rbx + 0x3c], eax
lea rcx, [rbp*2]
mov rax, qword [rbx + 8]
add rcx, rbp
mov word [rax + rcx*8], 0x2f
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edi
lea rdx, [rax + rcx*8]
lea eax, [rsi + r13]
mov dword [rdx + 0xc], esi
mov dword [rdx + 8], eax
mov qword [rdx + 0x10], 0
inc esi
sub r15, 1
jne 0x1400a5350
mov rdi, qword [rsp + 0xb0]
mov edx, dword [rsp + 0x50]
mov ecx, edx
sub ecx, 0xa
je 0x1400a54e8
sub ecx, 1
je 0x1400a5483
sub ecx, 1
je 0x1400a542d
cmp ecx, 2
je 0x1400a542d
mov rsi, qword [rsp + 0xd0]
mov rcx, rbx
mov dword [rsp + 0x20], 0
cmp dl, 9
jne 0x1400a5418
mov r9d, dword [rsp + 0xc8]
mov edx, 0x23
mov r8d, dword [rsi + 8]
call fcn.140065c50
mov r8d, dword [rsp + 0xc8]
mov edx, dword [rsi + 8]
jmp 0x1400a550f
mov r8d, dword [rsi + 4]
xor r9d, r9d
lea edx, [r9 + 0x16]
call fcn.140065c50
jmp 0x1400a5517
mov r8d, dword [rsp + 0x34]
mov r9d, r12d
mov edx, 0x4a
mov dword [rsp + 0x20], 0
mov rcx, rbx
call fcn.140065c50
mov r8d, dword [rsp + 0x34]
mov r9d, r14d
mov edx, 0x4b
mov dword [rsp + 0x20], r12d
mov rcx, rbx
call fcn.140065c50
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1400a5517
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
jmp 0x1400a5517
mov r9d, 1
mov dword [rsp + 0x20], r12d
mov r8d, r14d
mov rcx, rbx
lea edx, [r9 + 0x30]
call fcn.140065c50
mov r8, qword [rsp + 0xd0]
mov r9d, 1
inc r8
mov edx, eax
mov rcx, rbx
call fcn.140066230
mov r8d, 1
mov edx, r14d
mov rcx, rdi
call fcn.14007d720
mov r8d, dword [rsp + 0x34]
mov r9d, r12d
mov edx, WSAGetLastError
mov dword [rsp + 0x20], 0
mov rcx, rbx
call fcn.140065c50
jmp 0x1400a5517
mov r9d, dword [rsp + 0x34]
mov r8d, r14d
mov rcx, qword [rdi + 0x10]
mov edx, 0x20
mov dword [rsp + 0x20], 1
call fcn.140065c50
mov r8d, 1
mov edx, r14d
mov rcx, rdi
call fcn.14007d720
test r12d, r12d
je 0x1400a5589
test r14d, r14d
je 0x1400a5555
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x1400a5555
xor ecx, ecx
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], r14d
je 0x1400a5551
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x1400a5533
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], r14d
inc byte [rdi + 0x1f]
jmp 0x1400a5555
mov byte [rax + 6], 1
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x1400a5589
xor ecx, ecx
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], r12d
je 0x1400a5585
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x1400a5567
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], r12d
inc byte [rdi + 0x1f]
jmp 0x1400a5589
mov byte [rax + 6], 1
movsxd rax, dword [rsp + 0x44]
mov r8, qword [rbx + 0x30]
test eax, eax
js 0x1400a55ab
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x1400a55ab
mov rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
mov rcx, rbx
mov rdi, qword [rsp + 0xc0]
dec eax
mov r9d, dword [rsp + 0x48]
mov dword [r8 + 0x64], eax
mov r8d, dword [rsp + 0x38]
movzx edx, byte [rdi + 0x1c]
not dl
mov dword [rsp + 0x20], 0
and edx, 1
lea edx, [rdx*4 + 5]
call fcn.140065c50
mov r8d, dword [rdi + 0x10]
test r8d, r8d
je 0x1400a5606
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov rcx, rbx
lea edx, [r9 + 0x12]
call fcn.140065c50
movsxd rax, dword [rsp + 0x4c]
mov rdx, qword [rbx + 0x30]
test eax, eax
js 0x1400a5629
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x1400a5629
mov rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [rdx + 0x64], eax
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret