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

Disassembly:
mov qword [rsp + 0x20], r9
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, 0xb8
xor r12d, r12d
mov r15, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
xor bpl, bpl
mov qword [rsp + 0x60], r12
mov rsi, r9
mov byte [rsp + 0x44], bpl
lea edx, [r12 + 0xf]
mov dword [rsp + 0x54], r12d
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x98], rcx
call fcn.14015bc70
mov rbx, qword [rdi + 0x20]
mov r13d, r12d
mov rdx, qword [rsi + 0x60]
movabs r8, 0x8000000000000000
mov dword [rsp + 0x70], eax
mov rax, qword [rdi]
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], rdx
mov r14, qword [rax + 8]
movzx eax, byte [rsi + 0x40]
imul r10, rax, 0x68
add r10, r14
mov qword [rsp + 0x68], r10
lea rax, [r10 + 8]
mov qword [rsp + 0x88], rax
mov rax, qword [r10 + 0x28]
mov qword [rsp + 0x80], rax
movsxd rax, dword [rdi + 0x14]
imul rax, rax, 0x38
add rax, rbx
mov qword [rsp + 0x78], rax
cmp rbx, rax
jae 0x140108a0d
nop dword [rax + rax]
test byte [rbx + 0x12], 2
jne 0x140108930
mov rdi, qword [rbx]
mov rdx, r14
movzx r8d, byte [rsi + 0x40]
mov rcx, rdi
call fcn.140144b30
test eax, eax
je 0x140108930
mov rcx, qword [r15]
xor r8d, r8d
mov rdx, rdi
call fcn.140145a80
mov rdx, qword [rsp + 0x60]
mov r8, rax
mov rcx, r15
call fcn.1401464d0
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x110]
mov rcx, rbx
mov rdx, qword [rsp + 0x88]
call fcn.140108ef0
test eax, eax
je 0x1401089e2
movsxd rcx, dword [rbx + 0x20]
cmp ecx, 0x40
jl 0x140108965
movabs rdi, 0x8000000000000000
jmp 0x14010896d
mov edi, 1
shl rdi, cl
test bpl, bpl
jne 0x14010899d
mov rax, qword [rsp + 0x80]
lea rcx, [rcx + rcx*2]
lea rdx, str.automatic_index_on__s__s_
mov r9, qword [rax + 8]
mov r8, qword [rax]
mov r9, qword [r9 + rcx*8]
mov ecx, 0x11c
call fcn.14017dea0
mov bpl, 1
mov rdx, qword [rsp + 0x48]
test r12, rdi
jne 0x1401089e7
mov rcx, qword [r15]
lea esi, [r13 + 1]
mov r8d, esi
call fcn.140107d00
test eax, eax
jne 0x140108ec3
mov rdx, qword [rsp + 0x48]
or r12, rdi
movsxd rcx, r13d
mov r13d, esi
mov dword [rsp + 0x40], esi
mov rsi, qword [rsp + 0x118]
mov rax, qword [rdx + 0x48]
mov qword [rax + rcx*8], rbx
jmp 0x1401089e7
mov rdx, qword [rsp + 0x48]
add rbx, 0x38
cmp rbx, qword [rsp + 0x78]
jb 0x1401088f0
mov r10, qword [rsp + 0x68]
movabs r8, 0x8000000000000000
mov rdi, qword [rsp + 0x108]
mov rbp, qword [rsp + 0x80]
mov rax, 0xffffffffffffffff
mov word [rdx + 0x3c], r13w
mov word [rdx + 0x18], r13w
mov dword [rdx + 0x38], 0x4241
cmp byte [rbp + 0x3f], 2
jne 0x140108a38
mov r12, rax
jmp 0x140108a42
not r12
or r12, r8
and r12, qword [r10 + 0x58]
movsx r8d, word [rbp + 0x36]
mov r14d, 0x3f
xor eax, eax
mov qword [rsp + 0x90], r12
cmp r14w, r8w
jge 0x140108a67
mov r9d, r14d
mov dword [rsp + 0x50], r14d
jmp 0x140108a75
mov dword [rsp + 0x50], r8d
mov r9d, r8d
cmp ax, r8w
jge 0x140108a9c
mov edx, eax
nop word [rax + rax]
mov ecx, r13d
mov eax, edx
inc r13d
bt r12, rax
cmovae r13d, ecx
inc edx
cmp edx, r9d
jl 0x140108a80
mov dword [rsp + 0x40], r13d
cmp qword [r10 + 0x58], 0
jge 0x140108aaf
lea eax, [r8 - 0x3f]
add r13d, eax
mov dword [rsp + 0x40], r13d
mov rcx, qword [r15]
lea edx, [r13 + 1]
lea r9, [rsp + 0xa0]
xor r8d, r8d
call fcn.1401341e0
mov rbx, rax
test rax, rax
je 0x140108ec3
mov r12, qword [rsp + 0x48]
lea r11, [0x1401b6cc8]
mov qword [r12 + 0x20], rax
lea rax, str.auto_index
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov esi, eax
mov rdi, qword [rdi + 0x20]
mov r13d, eax
cmp rdi, qword [rsp + 0x78]
jae 0x140108be9
mov r14, qword [rsp + 0x100]
mov r12d, eax
mov r15d, eax
mov r8, qword [rsp + 0x110]
mov rcx, rdi
mov rdx, qword [rsp + 0x88]
call fcn.140108ef0
test eax, eax
je 0x140108bb6
mov ecx, dword [rdi + 0x20]
cmp ecx, 0x40
jl 0x140108b49
movabs rax, 0x8000000000000000
jmp 0x140108b51
mov eax, 1
shl rax, cl
test r13, rax
jne 0x140108bb6
mov rbp, qword [rdi]
or r13, rax
mov rax, qword [rbx + 8]
mov rdx, rbp
mov word [r15 + rax], cx
mov rcx, r14
call fcn.1401471e0
test rax, rax
je 0x140108b7a
mov rcx, qword [rax]
jmp 0x140108b81
lea rcx, [0x1401b6cc8]
mov rax, qword [rbx + 0x40]
inc esi
add r15, 2
mov qword [r12 + rax], rcx
add r12, 8
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140108bb6
call fcn.140147880
mov ecx, dword [rsp + 0x44]
cmp al, 0x42
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [rsp + 0x44], ecx
add rdi, 0x38
cmp rdi, qword [rsp + 0x78]
jb 0x140108b15
mov r15, qword [rsp + 0x100]
lea r11, [0x1401b6cc8]
mov rbp, qword [rsp + 0x80]
mov r14d, 0x3f
mov r12, qword [rsp + 0x48]
xor eax, eax
mov r10d, dword [rsp + 0x50]
mov ecx, eax
test r10d, r10d
jle 0x140108c3a
mov r9, qword [rsp + 0x90]
movsxd rax, esi
lea rdx, [rax*8]
lea r8, [rax + rax]
nop dword [rax]
mov eax, ecx
bt r9, rax
jae 0x140108c33
mov rax, qword [rbx + 8]
inc esi
mov word [r8 + rax], cx
add r8, 2
mov rax, qword [rbx + 0x40]
mov qword [rdx + rax], r11
add rdx, 8
inc ecx
cmp ecx, r10d
jl 0x140108c10
mov rdi, qword [rsp + 0x68]
cmp qword [rdi + 0x58], 0
jge 0x140108c89
cmp r14w, word [rbp + 0x36]
jge 0x140108c89
movsxd rax, esi
lea rcx, [rax*8]
lea rdx, [rax + rax]
nop dword [rax]
mov rax, qword [rbx + 8]
lea rdx, [rdx + 2]
inc esi
lea rcx, [rcx + 8]
mov word [rdx + rax - 2], r14w
inc r14d
mov rax, qword [rbx + 0x40]
mov qword [rcx + rax - 8], r11
movsx eax, word [rbp + 0x36]
cmp r14d, eax
jl 0x140108c60
mov rax, qword [rbx + 8]
mov rdx, 0xffffffffffffffff
mov r13, qword [rsp + 0x118]
mov r9d, dword [rsp + 0x40]
mov r14, qword [rsp + 0x98]
movsxd rcx, esi
mov word [rax + rcx*2], dx
mov edx, reloc.WS2_32.dll_WSACleanup
mov rax, qword [rbx + 0x40]
mov qword [rax + rcx*8], r11
mov rcx, r14
mov eax, dword [r15 + 0x34]
mov dword [r13 + 8], eax
inc dword [r15 + 0x34]
mov r8d, dword [r13 + 8]
inc r9d
call fcn.14015bc30
mov rdx, rbx
mov rcx, r15
call fcn.14015ad20
mov rax, qword [r15]
test dword [rax + 0x60], 0x80000
jne 0x140108d2b
cmp byte [rsp + 0x44], 0
je 0x140108d2b
mov rdx, qword [rsp + 0x108]
mov r8, r13
mov rcx, r15
mov rdx, qword [rdx]
call fcn.14010f2c0
inc dword [r15 + 0x38]
mov edx, 0x4d
mov r9d, dword [r15 + 0x38]
mov r8d, 0x2710
mov rcx, r14
mov dword [r13 + 0x34], r9d
call fcn.14015bc30
test byte [rdi + 0x48], 0x20
je 0x140108d6f
mov edi, dword [rdi + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x47]
call fcn.14015bc30
mov dword [rsp + 0x58], eax
xor r9d, r9d
mov rax, qword [rsp + 0x68]
mov r8d, edi
mov rcx, r14
lea edx, [r9 + 0xb]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x20], eax
call fcn.14015bbb0
mov edx, listen
jmp 0x140108d78
mov edi, dword [r13 + 4]
mov edx, 0x24
mov r8d, edi
mov rcx, r14
call fcn.14015bc50
mov rdx, qword [rsp + 0x60]
mov edi, eax
test rdx, rdx
je 0x140108db2
mov rcx, r15
call fcn.14015b680
mov r8d, eax
mov dword [rsp + 0x54], eax
mov r9d, reloc.WS2_32.dll_recv
call fcn.1401406d0
or dword [r12 + 0x38], 0x20000
mov rcx, r15
call fcn.14013f250
mov r8d, dword [r13 + 4]
mov ebp, eax
xor eax, eax
mov r9d, ebp
mov dword [rsp + 0x38], eax
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call fcn.14012fbb0
mov r8d, dword [r13 + 0x34]
mov ebx, eax
test r8d, r8d
je 0x140108e08
movzx ecx, word [r12 + 0x18]
xor r9d, r9d
mov dword [rsp + 0x28], ecx
mov edx, 0xb5
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.14015bb30
mov r8d, dword [r13 + 8]
mov r9d, ebp
mov edx, 0x8a
mov rcx, r14
call fcn.14015bc30
mov edx, reloc.WS2_32.dll_recv
mov rcx, r14
call fcn.14015b1f0
cmp qword [rsp + 0x60], 0
je 0x140108e3a
mov edx, dword [rsp + 0x54]
call fcn.14015b590
mov r12, qword [rsp + 0x68]
mov rcx, r14
test byte [r12 + 0x48], 0x20
je 0x140108e84
mov edx, dword [rsp + 0x58]
lea r8d, [rbx + rsi]
call fcn.14015b240
mov edx, dword [r13 + 8]
mov rcx, r15
mov r9d, dword [r12 + 0x40]
mov r8d, dword [r13 + 4]
mov dword [rsp + 0x20], edx
mov edx, edi
call fcn.140108f90
mov edx, edi
mov rcx, r14
call fcn.14015bb00
and dword [r12 + 0x48], 0xffffffdf
jmp 0x140108ea3
mov r8d, dword [r13 + 4]
lea r9d, [rdi + 1]
mov edx, 0x27
call fcn.14015bc30
mov edx, 3
mov rcx, r14
call fcn.14015b1f0
mov edx, edi
mov rcx, r14
call fcn.14015b1a0
mov rcx, r15
mov edx, ebp
call fcn.14013f230
mov edx, dword [rsp + 0x70]
mov rcx, r14
call fcn.14015b1a0
mov rdx, qword [rsp + 0x60]
mov rcx, qword [r15]
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.1401460d0