Function at 0x100672e0
Capabilities:
Check for time delay via gettickcount
Create tcp socket
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x101e7b83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x2a], eax
mov edi, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
push ecx
mov word [esp + 0x3a], ax
mov word [esp + 0x2c], 2
mov dword [esp + 0x30], ebx
call dword [sym.imp.WS2_32.dll_htons]
xor esi, esi
push 1
push esi
push esi
push esi
push 1
push 2
mov word [esp + 0x42], ax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x100676a1
mov eax, dword [0x10282758]
cmp eax, esi
je 0x1006737b
push 0x1025dfa8
push str._IOCP___s
push str.IOCPConnect
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
push pe_nt_image_headers32
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x40], 1
je 0x100673be
mov edx, dword [edi + 0x108]
mov ecx, dword [edi + 0x10c]
push edx
mov edx, dword [edi + 0xec]
push ecx
mov ecx, dword [edi + 0xf0]
push esi
push edx
push ecx
mov ecx, eax
call fcn.1006c230
mov esi, eax
test esi, esi
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x10], esi
je 0x1006767c
push ebp
mov ecx, esi
call fcn.1006c610
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esi + 0xf4], edx
mov dx, word [esp + 0x4c]
mov dword [esi + 0xf8], eax
mov dword [esi + 0xfc], ecx
mov dword [esi + 0x104], ebx
mov word [esi + 0x108], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x100], eax
mov eax, dword [edi + 0x30]
push 0
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x10067704
mov eax, dword [0x10282758]
test eax, eax
je 0x10067453
push str.Connect_Socket
push str._IOCP___s
push str.IOCPConnect
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [edi + 0x50]
push 1
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CSingleLock::CSingleLock
push esi
lea ecx, [edi + 0x34]
mov dword [esp + 0x44], 3
call sub.MFC42u.DLL_CPtrList::AddTail_1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42u.DLL_CSingleLock::Unlock
push 0
mov ecx, esi
call fcn.1006cdd0
mov ebx, eax
mov ecx, esi
mov dword [ebx + 0x2c], 1
call fcn.1006c640
push esi
mov ecx, edi
mov dword [ebx + 0x14], eax
call fcn.10067ec0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push edx
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x64], eax
mov dword [esi + 0xec], eax
call fcn.10067e80
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], 0
test eax, eax
je 0x1006754f
lea ecx, [esp + 0x4c]
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x40], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.TEC_OCULAR__AGENT_V3_EVENT_IOCP_CONNECT
lea edx, [esp + 0x5c]
push str._s__lu__lu__X
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x64]
add esp, 0x18
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esp + 0x14], eax
je 0x1006776b
lea ecx, [esp + 0x18]
mov dword [esi + 0x10c], eax
mov dword [esi + 0x110], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov edx, dword [edi + 0x130]
lea eax, [esp + 0x28]
push edx
push ebx
push eax
mov dword [esp + 0x1c], 0
call fcn.1006fb80
add esp, 0xc
lea ecx, [esp + 0x48]
mov esi, eax
call sub.MFC42u.DLL_CString::CString_2
mov eax, esi
mov dword [esp + 0x40], 5
sub eax, 0
je 0x100675ad
dec eax
je 0x100675a0
dec eax
push ebp
je 0x10067594
push str.CControlThread::ConnectSvr:_PostConnect__IORT_OTHER__socket___d_r_n
jmp 0x100675b3
lea edx, [esp + 0x4c]
push str.CControlThread::ConnectSvr:_PostConnect__IORT_NOBUFFER__socket___d_r_n
push edx
jmp 0x100675b8
push ebp
lea eax, [esp + 0x4c]
push str.CControlThread::ConnectSvr:_PostConnect__IORT_PENDING__socket___d_r_n
push eax
jmp 0x100675b8
push ebp
push str.CControlThread::ConnectSvr:_PostConnect__IORT_FINISH__socket___d_r_n
lea ecx, [esp + 0x50]
push ecx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [0x10282758]
add esp, 0xc
test eax, eax
je 0x100675e7
mov edx, dword [esp + 0x48]
push edx
push str._IOCP___s
push str.IOCPConnect
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
cmp esi, 2
je 0x10067781
cmp esi, 3
je 0x10067781
cmp esi, 1
jne 0x10067661
mov eax, dword [esp + 0x64]
test eax, eax
je 0x10067661
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
xor ecx, ecx
test eax, eax
push eax
push 0xffffffffffffffff
lea edx, [esp + 0x50]
push str.CControlThread::ConnectSvr:_socket___d__bConnect__d__r_n
sete cl
push edx
mov esi, ecx
or ebp, 0xffffffff
call sub.MFC42u.DLL_CString::Format
mov eax, dword [0x10282758]
add esp, 0x10
test eax, eax
je 0x10067663
mov eax, dword [esp + 0x48]
push eax
push str._IOCP___s
push str.IOCPConnect
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
jmp 0x10067663
xor esi, esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42u.DLL_CString::CString
test esi, esi
je 0x10067797
xor esi, esi
cmp ebp, 0xffffffff
je 0x1006768a
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1006779b
mov edx, dword [ecx]
push 1
call dword [edx]
jmp 0x1006779b
lea ecx, [esp + 0x64]
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x40], esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x68]
push 0x1025dfc4
push ecx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [0x10282758]
add esp, 0xc
cmp eax, esi
je 0x100676ee
mov edx, dword [esp + 0x64]
push edx
push str._IOCP___s
push str.IOCPConnect
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x64]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42u.DLL_CString::CString
jmp 0x1006767c
lea ecx, [esp + 0x64]
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x40], 2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x68]
push 0x1025e15c
push eax
call sub.MFC42u.DLL_CString::Format
mov eax, dword [0x10282758]
add esp, 0xc
test eax, eax
je 0x10067755
mov ecx, dword [esp + 0x64]
push ecx
push str._IOCP___s
push str.IOCPConnect
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x64]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42u.DLL_CString::CString
jmp 0x1006767c
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42u.DLL_CString::CString
jmp 0x1006767c
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42u.DLL_CString::CString
jmp 0x1006767c
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100677aa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 0x20