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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x38
xor r14d, r14d
mov r13, rdx
mov rdi, rcx
mov ebp, r14d
mov r15d, r14d
test rdx, rdx
je 0x1400a419c
mov ebx, dword [rdx + 0x18]
mov ecx, 0x200
call fcn.1400974c0
mov r15, rax
test rax, rax
je 0x1400a417f
lea rcx, [rax + 4]
xor edx, edx
mov r8d, 0x1fc
call fcn.140175ab0
mov dword [r15], ebx
test r15, r15
jne 0x1400a4196
lea eax, [r15 + 7]
add rsp, 0x38
pop r15
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [r13 + 0x18]
jmp 0x1400a419f
mov eax, dword [rcx + 0x24]
mov dword [rdi + 0x20], eax
movzx eax, byte [rdi + 0x11]
mov byte [rdi + 0x17], al
mov qword [rsp + 0x70], rsi
test r13, r13
jne 0x1400a42b7
mov rsi, qword [rdi + 0x140]
test rsi, rsi
je 0x1400a42b7
mov eax, dword [rdi + 0x24]
mov dword [rdi + 0x20], eax
cmp byte [rsi + 0x40], bpl
je 0x1400a4260
mov r15d, dword [rsi + 0x58]
mov rax, qword [rsi + 0x30]
mov rcx, qword [rax]
movups xmm0, xmmword [rcx]
movups xmmword [rsi + 0x48], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rsi + 0x58], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rsi + 0x68], xmm0
mov ebx, dword [rsi + 0x58]
inc ebx
lea ebp, [rbx + 0x1000]
cmp ebx, r15d
ja 0x1400a4252
mov r8, qword [rsi + 0x30]
mov eax, ebp
sub rax, 0xfdf
shr rax, 0xc
test eax, eax
jne 0x1400a4229
mov rax, qword [r8]
mov edx, dword [rax + rbx*4 + 0x84]
jmp 0x1400a423f
cdqe
lea edx, [rbx - 1]
add rdx, 0x22
and edx, 0xfff
mov rcx, qword [r8 + rax*8]
mov edx, dword [rcx + rdx*4]
mov rcx, rdi
call fcn.1400a3f10
inc ebx
inc ebp
mov r14d, eax
test eax, eax
je 0x1400a4204
cmp r15d, dword [rsi + 0x58]
je 0x1400a4260
mov rcx, rsi
call fcn.1400a7f70
mov rdx, qword [rdi + 0x138]
mov rcx, qword [rdx]
test rcx, rcx
je 0x1400a4283
nop
mov rax, qword [rcx + 0x38]
mov qword [rcx + 0x18], rax
mov rcx, rax
test rax, rax
jne 0x1400a4270
mov rcx, qword [rdx]
call fcn.1400a0ad0
test rax, rax
je 0x1400a42af
nop dword [rax]
test r14d, r14d
jne 0x1400a42af
mov edx, dword [rax + 0x28]
mov rcx, rdi
mov rbx, qword [rax + 0x18]
call fcn.1400a3f10
mov r14d, eax
mov rax, rbx
test rbx, rbx
jne 0x1400a4290
mov eax, r14d
jmp 0x1400a44a8
mov qword [rsp + 0x30], r12
lea rbx, [rdi + 0x60]
mov r12, qword [rbx]
test r13, r13
je 0x1400a4319
cmp qword [rdi + 0x140], rbp
jne 0x1400a4319
mov rsi, qword [r13 + 8]
mov rax, qword [r13]
test rsi, rsi
mov qword [rbx], rax
cmove rsi, r12
cmp qword [rbx], rsi
jge 0x1400a430f
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r15
mov rdx, rbx
mov rcx, rdi
call fcn.1400a3240
mov ebp, eax
test eax, eax
je 0x1400a42e3
jmp 0x1400a43c8
test ebp, ebp
jne 0x1400a43c8
jmp 0x1400a4320
mov qword [rbx], r14
nop dword [rax]
cmp qword [rbx], r12
jge 0x1400a43c3
lea rax, [rsp + 0x88]
mov dword [rsp + 0x80], r14d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r8, r12
xor edx, edx
mov rcx, rdi
call fcn.1400a2600
mov r13d, dword [rsp + 0x80]
mov ebp, eax
test r13d, r13d
jne 0x1400a438e
mov eax, dword [rdi + 0xb8]
add rax, qword [rdi + 0x68]
mov rdx, qword [rbx]
cmp rax, rdx
jne 0x1400a438e
mov eax, dword [rdi + 0xbc]
add eax, 8
movsxd rcx, eax
mov rax, r12
sub rax, rdx
cqo
idiv rcx
mov r13, rax
mov esi, r14d
test ebp, ebp
jne 0x1400a43c3
cmp esi, r13d
jae 0x1400a4320
cmp qword [rbx], r12
jge 0x1400a43c3
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r15
mov rdx, rbx
mov rcx, rdi
call fcn.1400a3240
inc esi
mov ebp, eax
test eax, eax
je 0x1400a4395
mov r13, qword [rsp + 0x78]
test r13, r13
je 0x1400a4468
mov eax, dword [rdi + 0xbc]
mov esi, dword [r13 + 0x1c]
add eax, 4
movsxd rcx, eax
imul rcx, rsi
mov qword [rsp + 0x78], rcx
mov rcx, qword [rdi + 0x140]
test rcx, rcx
je 0x1400a443b
mov eax, dword [rcx + 0x88]
cmp dword [r13 + 0x2c], eax
je 0x1400a4415
mov dword [r13 + 0x20], r14d
mov eax, dword [rcx + 0x88]
mov dword [r13 + 0x2c], eax
mov eax, r14d
jmp 0x1400a4419
mov eax, dword [r13 + 0x20]
cmp eax, dword [rcx + 0x58]
jae 0x1400a4434
mov dword [rcx + 0x58], eax
mov eax, dword [r13 + 0x24]
mov dword [rcx + 0x60], eax
mov eax, dword [r13 + 0x28]
mov dword [rcx + 0x64], eax
call fcn.1400a7f70
mov esi, dword [r13 + 0x1c]
mov ebp, r14d
test ebp, ebp
jne 0x1400a4468
nop
cmp esi, dword [rdi + 0x3c]
jae 0x1400a4468
xor r9d, r9d
mov dword [rsp + 0x20], 1
mov r8, r15
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400a3240
inc esi
mov ebp, eax
test eax, eax
je 0x1400a4440
test r15, r15
je 0x1400a449a
cmp dword [r15 + 8], r14d
je 0x1400a4492
lea rdi, [r15 + 0x10]
mov esi, 0x3e
nop dword [rax]
mov rcx, qword [rdi]
call fcn.1400a0430
lea rdi, [rdi + 8]
sub rsi, 1
jne 0x1400a4480
mov rcx, r15
call fcn.1400978c0
test ebp, ebp
jne 0x1400a44a1
mov qword [rbx], r12
mov r12, qword [rsp + 0x30]
mov eax, ebp
mov rsi, qword [rsp + 0x70]
add rsp, 0x38
pop r15
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret
mov dword [rsp + 0x10], edx
push rsi
push r14
sub rsp, 0x38
mov r14d, dword [rcx + 0x30]
mov rsi, rcx
test r14d, r14d
jne 0x1400a7425
mov eax, dword [rcx + 0x80]
cmp r8d, eax
jge 0x1400a7425
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov qword [rsp + 0x30], r12
cmp edx, 1
mov qword [rsp + 0x28], r13
mov r13d, ebx
setne r13b
add r13d, r8d
mov r12d, r13d
cmp r13d, eax
jge 0x1400a738f
mov qword [rsp + 0x60], rbp
movsxd rax, r13d
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x20], r15
lea r15, [rax + rax*2]
shl r15, 4
nop word [rax + rax]
mov rax, qword [rsi + 0x78]
mov rbp, qword [r15 + rax + 0x10]
test rbp, rbp
je 0x1400a736a
cmp dword [rbp + 8], 0
je 0x1400a7362
lea rbx, [rbp + 0x10]
mov edi, 0x3e
nop dword [rax]
mov rcx, qword [rbx]
call fcn.1400a0430
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x1400a7350
mov rcx, rbp
call fcn.1400978c0
inc r12d
add r15, 0x30
cmp r12d, dword [rsi + 0x80]
jl 0x1400a7330
mov edx, dword [rsp + 0x58]
xor ebx, ebx
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r12, qword [rsp + 0x30]
mov dword [rsi + 0x80], r13d
cmp edx, 1
jne 0x1400a73dd
test r13d, r13d
jne 0x1400a73c8
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
test rax, rax
je 0x1400a73c8
lea rdx, reloc.WSOCK32.dll_accept
cmp rax, rdx
jne 0x1400a73c5
xor edx, edx
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov r14d, eax
mov dword [rsi + 0x3c], ebx
mov rbx, qword [rsp + 0x50]
mov eax, r14d
mov r13, qword [rsp + 0x28]
add rsp, 0x38
pop r14
pop rsi
ret
cmp qword [rsi + 0x140], 0
jne 0x1400a73f1
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
je 0x1400a73c8
test r13d, r13d
je 0x1400a7409
lea eax, [r13 - 1]
movsxd rcx, eax
lea rbx, [rcx + rcx*2]
shl rbx, 4
add rbx, qword [rsi + 0x78]
mov rdx, rbx
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x28]
add rsp, 0x38
pop r14
pop rsi
jmp 0x1400a4130
mov eax, r14d
add rsp, 0x38
pop r14
pop rsi
ret