Function at 0x10006e90
Capabilities:
Check for time delay via queryperformancecounter
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100999a6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c8], ebx
imul edi, dword [ebx + 0x8c], 0xc3
mov edx, dword [ebx + 0x80]
add edi, 4
add edi, edx
add edx, 0x61c
mov dword [ebp - 0x1d0], edi
mov dword [ebp - 0x18], edx
movsx eax, byte [edi + 0x40]
dec eax
cmp eax, 7
ja case.0x10006ef8.6
jmp dword [eax*4 + 0x100079f8]
push 0x38
call fcn.1007bcba
push 0x38
mov esi, eax
push 0
push esi
mov dword [ebp - 0x1c0], esi
call fcn.1007d2d0
add esp, 0x10
mov ecx, esi
call fcn.10006700
mov esi, eax
jmp 0x10007165
push 0x38
call fcn.1007bcba
push 0x38
mov esi, eax
push 0
push esi
mov dword [ebp - 0x1c0], esi
call fcn.1007d2d0
add esp, 0x10
mov ecx, esi
call fcn.10006700
mov dword [esi], vtable.CXWsSocketClient.0
jmp 0x10007165
push 0x34
call fcn.1007bcba
mov esi, eax
mov dword [ebp - 0x1c0], esi
push 0x34
push 0
push esi
mov dword [ebp - 4], 0
call fcn.1007d2d0
add esp, 0x10
mov byte [ebp - 4], 1
cmp byte [0x100e572c], 0
mov dword [esi], vtable.CXVTcpSocketClient.0
mov dword [esi + 4], 0xffffffff
jne 0x10006fa6
lea ecx, [ebp - 0x1bc]
call fcn.10014ac8
mov byte [0x100e572c], 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call edi
mov dword [esi + 0x30], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1000715f
push 0x40
call fcn.1007bcba
mov esi, eax
mov dword [ebp - 0x1c0], esi
push 0x40
push 0
push esi
mov dword [ebp - 4], 2
call fcn.1007d2d0
add esp, 0x10
mov ecx, esi
call fcn.10006700
mov byte [ebp - 4], 3
cmp dword [0x100df570], 0
mov dword [esi], vtable.CXTlsSocketClient.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
jne 0x10007059
call fcn.1001a790
mov eax, dword [0x100df564]
push 4
test eax, eax
je 0x10007068
call eax
jmp 0x1000706d
call fcn.10080ffe
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10007089
mov word [ebp - 0x14], 0x403
mov ax, word [ebp - 0x14]
mov word [ecx], ax
mov word [ecx + 2], 0x101
call fcn.100196b0
mov dword [esi + 0x3c], eax
test eax, eax
je 0x100070ab
mov cl, byte [eax + 0x59]
and cl, 0xf2
mov dword [eax + 0xb4], 0
or cl, 2
mov byte [eax + 0x59], cl
mov dword [ebp - 4], 0xffffffff
jmp 0x10007165
push 0x160
call fcn.1007bcba
push 0x160
mov esi, eax
push 0
push esi
mov dword [ebp - 0x1c0], esi
call fcn.1007d2d0
add esp, 0x10
mov dword [esi], vtable.CXSmbSoPipeClient.0
lea eax, [edi + 0x43]
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x54], eax
lea eax, [edi + 0x83]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [esi + 0x58], eax
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call edi
push 0x104
mov dword [esi + 0x30], eax
lea eax, [esi + 0x5c]
push 0
push eax
call fcn.1007d2d0
add esp, 0xc
mov edi, dword [ebp - 0x1d0]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100071c3
cmp byte [eax + 0x40], 0
je 0x100071c3
push 4
call fcn.1007bcba
mov edx, dword [ebp - 0x18]
add esp, 4
mov edi, eax
mov ecx, edi
push edx
push dword [ebp - 0x1d0]
mov dword [edi], vtable.CXProxy.0
push esi
call fcn.1007b100
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [ebp - 0x1c4], eax
call dword [edx]
mov edi, dword [ebp - 0x1c4]
test edi, edi
je 0x100071e3
test esi, esi
je 0x100079a0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x100079a0
movzx eax, word [edi + 0x41]
mov ecx, esi
mov edx, dword [esi]
push eax
push edi
call dword [edx + 4]
mov edi, eax
test edi, edi
je 0x100071e3
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x100079a0
mov ecx, dword [ebp - 0x1d0]
mov al, byte [ecx + 0x40]
cmp al, 4
je 0x100071f8
cmp al, 5
jne 0x100072dd
mov ecx, dword [esi + 0x3c]
call fcn.10019780
mov dword [esi + 0x38], eax
test eax, eax
jne 0x10007217
mov eax, dword [esi]
mov ecx, esi
push 1
or edi, 0xffffffff
call dword [eax]
jmp 0x100079a0
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push 5
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, dword [esi + 0x38]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x10007282
mov bl, byte [ecx + 0x1b4]
lea eax, [ecx + 0x1e4]
and bl, 0xfd
mov dword [eax], edx
test byte [ecx + 0x3de], 0x80
lea edi, [ecx + 0x1a0]
mov dword [ecx + 0x74], eax
lea eax, [ecx + 0x1e8]
mov byte [ebp - 0x11], bl
mov ebx, dword [ebp - 0x1c8]
mov dword [eax], edx
je 0x10007276
mov dword [ecx + 0x74], edi
mov dword [ecx + 0x1ac], edx
mov dword [ecx + 0x78], edi
mov dword [ecx + 0x1b0], edx
jmp 0x10007279
mov dword [ecx + 0x78], eax
mov al, byte [ebp - 0x11]
mov byte [ecx + 0x1b4], al
mov ecx, dword [esi + 0x38]
call fcn.1001c630
cmp eax, 0xffffffff
jne 0x1000729e
or edi, eax
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax]
jmp 0x100079a0
push 4
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x1c4], 0xea60
push eax
push 0x1006
push 0xffff
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
test edi, edi
je 0x100072d7
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x100079a0
mov ecx, dword [ebp - 0x1d0]
cmp byte [ecx + 0x40], 8
jne 0x10007300
movzx eax, word [ecx + 0x41]
push eax
push ecx
mov ecx, esi
call fcn.10014790
mov edi, eax
test edi, edi
jne 0x100071ae
mov ecx, dword [ebp - 0x1d0]
movsx eax, byte [ecx + 0x40]
dec eax
cmp eax, 7
ja case.0x1000730e.6
jmp dword [eax*4 + 0x10007a18]
push 0x30
call fcn.1007bcba
mov edi, eax
mov dword [ebp - 0x1c0], edi
push 0x30
push 0
push edi
mov dword [ebp - 4], 4
call fcn.1007d2d0
mov byte [ebp - 4], 5
push 8
mov dword [edi], vtable.CXTcpClient.0
mov dword [edi + 0x1c], esi
call fcn.1007bcba
add esp, 0x14
mov dword [ebp - 0x1cc], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 6
mov ecx, eax
movq qword [eax], xmm0
call fcn.10003420
mov byte [ebp - 4], 5
push 0x200034
mov dword [edi + 0x20], eax
call fcn.1007bcba
mov dword [ebp - 0x1c0], eax
lea ecx, [eax + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 0
add esp, 4
mov dword [edi + 0x2c], 0xea60
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 4], edi
jmp case.0x1000730e.6
push 0x88
call fcn.1007bcba
mov edi, eax
mov dword [ebp - 0x1c0], edi
push 0x88
push 0
push edi
mov dword [ebp - 4], 7
call fcn.1007d2d0
add esp, 0x10
mov ecx, edi
push esi
call fcn.10006870
mov dword [ebp - 4], 0xffffffff
jmp 0x1000770e
push 0x30
call fcn.1007bcba
mov edi, eax
mov dword [ebp - 0x1c0], edi
push 0x30
push 0
push edi
mov dword [ebp - 4], 8
call fcn.1007d2d0
mov byte [ebp - 4], 9
push 8
mov dword [edi], vtable.CXVTcpClient.0
mov dword [edi + 0x1c], esi
call fcn.1007bcba
add esp, 0x14
mov dword [ebp - 0x1cc], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 0xa
mov ecx, eax
movq qword [eax], xmm0
call fcn.10003420
mov byte [ebp - 4], 9
jmp 0x10007368
push 0x30
call fcn.1007bcba
mov edi, eax
mov dword [ebp - 0x1c0], edi
push 0x30
push 0
push edi
mov dword [ebp - 4], 0xb
call fcn.1007d2d0
mov byte [ebp - 4], 0xc
push 8
mov dword [edi], vtable.CXTcpClient.0
mov dword [edi + 0x1c], esi
call fcn.1007bcba
add esp, 0x14
mov dword [ebp - 0x1cc], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 0xd
mov ecx, eax
movq qword [eax], xmm0
call fcn.10003420
mov byte [ebp - 4], 0xc
push 0x200034
mov dword [edi + 0x20], eax
call fcn.1007bcba
mov dword [ebp - 0x1c0], eax
add esp, 4
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [edi + 0x24], eax
lea eax, [edi + 4]
push eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xea60
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi], vtable.CXTlsClient.0
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 4], edi
jmp case.0x1000730e.6
push 0x88
call fcn.1007bcba
mov edi, eax
mov dword [ebp - 0x1c0], edi
push 0x88
push 0
push edi
mov dword [ebp - 4], 0xe
call fcn.1007d2d0
add esp, 0x10
mov ecx, edi
push esi
call fcn.10006870
mov dword [edi], vtable.CXHttpsClient.0
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 4], edi
jmp case.0x1000730e.6
push 0x30
call fcn.1007bcba
mov edi, eax
mov dword [ebp - 0x1c0], edi
push 0x30
push 0
push edi
mov dword [ebp - 4], 0xf
call fcn.1007d2d0
mov byte [ebp - 4], 0x10
push 8
mov dword [edi], vtable.CXSmbClient.0
mov dword [edi + 0x1c], esi
call fcn.1007bcba
add esp, 0x14
mov dword [ebp - 0x1cc], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 0x11
mov ecx, eax
movq qword [eax], xmm0
call fcn.10003420
mov byte [ebp - 4], 0x10
push 0x200034
mov dword [edi + 0x20], eax
call fcn.1007bcba
mov dword [ebp - 0x1c0], eax
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [edi + 0x24], eax
jmp 0x10007394
push 0x54
call fcn.1007bcba
mov edi, eax
mov dword [ebp - 0x18], edi
push 0x54
push 0
push edi
mov dword [ebp - 4], 0x12
call fcn.1007d2d0
mov byte [ebp - 4], 0x13
push 8
mov dword [edi], vtable.CXTcpClient.0
mov dword [edi + 0x1c], esi
call fcn.1007bcba
add esp, 0x14
mov dword [ebp - 0x1c0], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 0x14
mov ecx, eax
movq qword [eax], xmm0
call fcn.10003420
mov byte [ebp - 4], 0x13
push 0x200034
mov dword [edi + 0x20], eax
call fcn.1007bcba
mov dword [ebp - 0x1c0], eax
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [edi + 0x24], eax
lea eax, [edi + 4]
push eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xea60
call ebx
mov byte [ebp - 4], 0x15
push 8
mov dword [edi], vtable.CXWsClient.0
mov dword [edi + 0x30], esi
call fcn.1007bcba
add esp, 4
mov dword [ebp - 0x1c0], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 0x16
mov ecx, eax
movq qword [eax], xmm0
call fcn.10003420
mov byte [ebp - 4], 0x15
push 0x34
mov dword [edi + 0x34], eax
call fcn.1007bcba
mov edi, eax
mov dword [ebp - 0x1c0], edi
push 0x34
push 0
push edi
call fcn.1007d2d0
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
push 0x200050
mov byte [ebp - 4], 0x19
call fcn.1007bcba
add esp, 0x14
mov dword [ebp - 0x1c0], eax
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x50], edi
add eax, 0x38
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c8]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
mov byte [ebx + 0x90], 1
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x1c4], eax
test ecx, ecx
je 0x100079ee
mov eax, dword [ecx]
lea edx, [ebp - 0x1c4]
push edx
call dword [eax + 8]
mov edi, eax
test edi, edi
jne 0x100079a0
push 0x100014
call fcn.1007bcba
push 0x100000
mov dword [ebp - 0x18], eax
call fcn.1008dfec
mov ecx, eax
add esp, 8
mov dword [ebp - 0x1d4], ecx
nop dword [eax]
nop dword [eax + eax]
push dword [ebx + 0x98]
mov eax, dword [esi]
lea edx, [ebp - 0x1c4]
push edx
push 0x100000
push ecx
mov ecx, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c4], 0
call dword [eax + 0xc]
mov edi, eax
test edi, edi
je 0x10007914
cmp edi, 0x274c
jne 0x10007976
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [ebp - 0x1d4]
mov al, byte [eax + 0x40]
cmp al, 3
je 0x10007770
cmp al, 5
je 0x10007770
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x14]
push edx
push 8
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x14], 5
jge 0x10007976
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x100de4f0]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
shl eax, 5
shr edx, 6
sub edx, eax
imul eax, dword [0x100de4f0], 0x3fff
lea ecx, [ecx + 0x14]
add eax, 0x4b0f4aa
add eax, edx
and eax, 0xfffffff
movzx edi, al
mov edx, edi
mov dword [0x100de4f0], eax
call fcn.10001110
mov ecx, dword [ebp - 0x18]
mov eax, 8
mov word [ecx + 2], ax
mov eax, dword [ebx + 0x80]
mov eax, dword [eax + 0xf20]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
call fcn.1007f15d
cdq
mov ecx, 0x64
idiv ecx
inc edx
imul eax, edx, 0x34
mov edx, dword [ebp - 0x18]
push edx
mov word [edx], ax
mov dword [edx + 0x10], edi
mov dword [edx + 0xc], 0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, eax
test edi, edi
jne 0x10007976
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x14]
inc dword [ebp - 0x14]
push edx
push 8
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebx + 4]
lea edi, [ebx + 0x94]
push edi
push 9
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebx + 0x98]
mov ebx, dword [edi]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
imul edi, dword [0x100de4f0], 0x3fff
mov eax, dword [0x100de4f0]
mov edx, dword [ebp - 0x2c]
shl eax, 5
shr edx, 6
sub edx, eax
add edi, 0x4b0f4aa
add edi, edx
mov eax, ebx
cdq
and edi, 0xfffffff
sub eax, edx
mov dword [0x100de4f0], edi
mov ecx, eax
mov eax, edi
sar ecx, 1
cdq
idiv ecx
mov edi, dword [ebp - 0x1c]
mov eax, edi
sub eax, edx
cmp edi, ebx
mov ebx, dword [ebp - 0x1c8]
lea ecx, [edi + edx]
cmovle eax, ecx
mov ecx, dword [ebp - 0x1d4]
mov dword [ebx + 0x98], eax
jmp 0x10007770
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [ebx + 0x54]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c0], eax
test ecx, ecx
je 0x100079ee
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x1cc]
push edx
lea edx, [ebp - 0x1c0]
push edx
call dword [eax + 8]
mov edi, eax
test edi, edi
jne 0x10007976
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
push edx
push 8
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x1d4]
jmp 0x10007770
push dword [ebp - 0x1d4]
call fcn.1007bd0d
mov eax, dword [ebp - 0x18]
push 0x100014
push eax
call fcn.1007bcac
add esp, 0xc
mov byte [ebx + 0x90], 0
jmp 0x100079a0
mov edi, 0x32
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c8], eax
test ecx, ecx
je 0x100079f3
mov eax, dword [ecx]
lea edx, [ebp - 0x1c8]
push edx
call dword [eax + 8]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x100079d0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
call fcn.1008e60c
call fcn.1008e60c
jmp [esi]