Function at 0x140115ef0
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 rdi
sub rsp, 0x2a0
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x2d0]
cmp dword [rax], 0
jne 0x140115f89
mov rax, qword [rsp + 0x2d8]
cmp dword [rax], 0
jne 0x140115f89
mov rcx, qword [rsp + 0x2e8]
call fcn.140121800
test rax, rax
jne 0x140115f89
mov rax, qword [rsp + 0x2b8]
mov dword [rax], 0
mov rax, qword [rsp + 0x2c0]
imul eax, dword [rax], 0x3e8
mov rcx, qword [rsp + 0x2c8]
mov dword [rcx], eax
jmp 0x140116661
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
jmp 0x140115fa5
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2d0]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jge 0x140115fe0
movsxd rax, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x2d0]
mov rax, qword [rdx + rax*8 + 8]
mov qword [rsp + rcx*8 + 0x90], rax
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x140115f9b
mov dword [rsp + 0x20], 0
jmp 0x140115ff4
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2d8]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jge 0x140116053
movsxd rax, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x2d8]
mov rcx, qword [rcx + rax*8 + 8]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x140116051
movsxd rax, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x2d8]
mov rax, qword [rdx + rax*8 + 8]
mov qword [rsp + rcx*8 + 0x90], rax
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x140115fea
mov dword [rsp + 0x20], 0
jmp 0x140116067
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2e0]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jge 0x1401160ed
movsxd rax, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x2e0]
mov rcx, qword [rcx + rax*8 + 8]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1401160e8
movsxd rax, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x2d8]
mov rcx, qword [rsp + 0x2e0]
mov rcx, qword [rcx + rax*8 + 8]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1401160e8
movsxd rax, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x2e0]
mov rax, qword [rdx + rax*8 + 8]
mov qword [rsp + rcx*8 + 0x90], rax
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x14011605d
mov dword [rsp + 0x20], 0
jmp 0x140116101
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jge 0x140116238
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x2b0]
cmp qword [rcx + rax*8], 0
je 0x14011613b
mov eax, dword [rsp + 0x20]
add eax, 0x40
cdqe
mov rcx, qword [rsp + 0x2b0]
cmp qword [rcx + rax*8], 0
je 0x140116154
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x2b0]
mov qword [rdx + rcx*8], rax
jmp 0x14011616b
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x2b0]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x20]
add eax, 0x40
cdqe
mov rcx, qword [rsp + 0x2b0]
mov qword [rcx + rax*8], 0
movsxd rax, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x2d0]
mov rcx, qword [rsp + rax*8 + 0x90]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1401161b6
mov eax, dword [rsp + 0x40]
or eax, 9
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x2d8]
mov rcx, qword [rsp + rax*8 + 0x90]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1401161e0
mov eax, dword [rsp + 0x40]
or eax, 0x12
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x2e0]
mov rcx, qword [rsp + rax*8 + 0x90]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14011620a
mov eax, dword [rsp + 0x40]
or eax, 0x20
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x20]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x2b0]
mov rdx, qword [rdx + rax*8]
mov rcx, qword [rsp + rcx*8 + 0x90]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x1401160f7
lea rcx, [rsp + 0x48]
call fcn.1401243b0
mov r9d, 8
lea r8, [rsp + 0x48]
mov edx, 8
lea rcx, [rsp + 0x38]
call fcn.140001020
mov rax, qword [rsp + 0x2c0]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x2c0]
mov eax, dword [rax + 4]
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x2e8]
call fcn.140121800
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1401165e8
cmp qword [rsp + 0x2f0], 0
je 0x14011631b
mov dword [rsp + 0x44], 0
jmp 0x1401162c6
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x2f0]
cmp qword [rcx + rax*8], 0
je 0x140116303
mov rcx, qword [rsp + 0x28]
call fcn.1401218e0
movsxd rcx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x2f0]
cmp rax, qword [rdx + rcx*8]
jne 0x140116301
mov dword [rsp + 0x44], 0xffffffff
jmp 0x140116303
jmp 0x1401162bc
cmp dword [rsp + 0x44], 0xffffffff
je 0x14011631b
mov rcx, qword [rsp + 0x28]
call fcn.140121880
mov qword [rsp + 0x28], rax
jmp 0x14011629b
mov eax, dword [rsp + 0x20]
inc eax
cmp eax, 0x40
jge 0x1401165d4
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x2b0]
cmp qword [rcx + rax*8], 0
je 0x14011637f
mov eax, dword [rsp + 0x20]
add eax, 0x40
cdqe
mov rcx, qword [rsp + 0x2b0]
cmp qword [rcx + rax*8], 0
jne 0x14011637f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x2b0]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov rcx, qword [rsp + 0x28]
call fcn.1401218e0
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x2b0]
mov qword [rdx + rcx*8], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax - 0x10], 0
jbe 0x1401163c0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax - 0x18]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x1401163c9
mov qword [rsp + 0x50], 0
mov eax, dword [rsp + 0x20]
add eax, 0x40
cdqe
mov rcx, qword [rsp + 0x2b0]
mov rdx, qword [rsp + 0x50]
mov qword [rcx + rax*8], rdx
mov rax, qword [rsp + 0x28]
cmp qword [rax - 0x10], 0
jbe 0x140116409
mov rax, qword [rsp + 0x28]
mov rax, qword [rax - 0x18]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x58], rax
jmp 0x140116412
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0x18], 0
jne 0x14011645b
mov rax, qword [rsp + 0x28]
cmp qword [rax - 0x10], 0
jbe 0x140116443
mov rax, qword [rsp + 0x28]
mov rax, qword [rax - 0x18]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x60], rax
jmp 0x14011644c
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x1c], 0
je 0x1401165d4
mov rax, qword [rsp + 0x28]
cmp qword [rax - 0x10], 0
jbe 0x140116481
mov rax, qword [rsp + 0x28]
mov rax, qword [rax - 0x18]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x68], rax
jmp 0x14011648a
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x38]
cmp dword [rax + 0x18], ecx
jl 0x14011651e
mov rax, qword [rsp + 0x28]
cmp qword [rax - 0x10], 0
jbe 0x1401164c2
mov rax, qword [rsp + 0x28]
mov rax, qword [rax - 0x18]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x70], rax
jmp 0x1401164cb
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x38]
cmp dword [rax + 0x18], ecx
jne 0x1401165d4
mov rax, qword [rsp + 0x28]
cmp qword [rax - 0x10], 0
jbe 0x140116503
mov rax, qword [rsp + 0x28]
mov rax, qword [rax - 0x18]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x78], rax
jmp 0x14011650c
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x3c]
cmp dword [rax + 0x1c], ecx
jge 0x1401165d4
mov rax, qword [rsp + 0x28]
cmp qword [rax - 0x10], 0
jbe 0x140116547
mov rax, qword [rsp + 0x28]
mov rax, qword [rax - 0x18]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x80], rax
jmp 0x140116553
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x28]
cmp qword [rax - 0x10], 0
jbe 0x14011658b
mov rax, qword [rsp + 0x28]
mov rax, qword [rax - 0x18]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x88], rax
jmp 0x140116597
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x48], eax
jl 0x1401165c4
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x48], eax
jne 0x1401165d4
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x4c], eax
jge 0x1401165d4
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x28]
call fcn.140121880
mov qword [rsp + 0x28], rax
jmp 0x14011629b
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x140116607
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x140116626
mov dword [rsp + 0x3c], 0
imul eax, dword [rsp + 0x38], 0x3e8
cvtsi2sd xmm0, eax
cvtsi2sd xmm1, dword [rsp + 0x3c]
mulsd xmm1, qword [0x140305ee0]
addsd xmm0, xmm1
cvttsd2si rax, xmm0
mov rcx, qword [rsp + 0x2c8]
mov dword [rcx], eax
mov rax, qword [rsp + 0x2b8]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x2a0
pop rdi
ret