Function at 0x42c910
Capabilities:
Check for time delay via gettickcount
Create thread
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x96c]
sub esp, 0x96c
push 0xfffffffffffffffe
push 0x66ffd0
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x968], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x978]
mov eax, dword [ebp + 0x97c]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0x984]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x98c]
mov dword [ebp - 0x38], edx
mov edi, dword [ebp + 0x994]
mov eax, dword [ebp + 0x998]
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov dword [ebp], ebx
push 0x850
push ebx
lea ecx, [ebp + 4]
push ecx
call fcn.005dfd60
add esp, 0xc
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x974]
lea edx, [ebp + 0x864]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x42c9b1
push 0x61ba8c
lea edx, [ebp + 0x864]
push edx
call fcn.005e0a30
add esp, 8
cmp eax, ebx
je 0x42c9d5
mov byte [eax], bl
mov ecx, dword [ebp + 0x988]
lea eax, [ecx - 0x2710]
cmp eax, 0xc350
jbe 0x42ca07
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea edx, [edx + edx*4]
add edx, edx
mov eax, ecx
sub eax, edx
cmp eax, 2
mov dword [ebp - 0x20], 0x2710
jne 0x42ca0a
mov dword [ebp - 0x20], ecx
lea ecx, [ebp + 0x864]
push ecx
lea edx, [ebp + 0x334]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x60c81c
lea ecx, [ebp + 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x60c81c
lea edx, [ebp + 0x64a]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x60fa24
lea edx, [ebp + 0x438]
jmp 0x42ca60
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x42ca60
push 0x60c81c
lea eax, [ebp + 0x74e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp + 0x22c], ebx
mov dword [ebp + 0x228], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 0xc], ebx
mov ecx, dword [ebp + 0x980]
mov dword [ebp], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp + 0x1c], edx
cmp dword [ebp - 0x38], ebx
je 0x42cab1
mov eax, dword [ebp - 0x38]
mov byte [eax], bl
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x42caba
mov byte [eax], bl
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x42cac3
mov byte [eax], bl
lea ecx, [ebp - 0x24]
push ecx
push ebx
lea edx, [ebp]
push edx
push 0x42c1a0
push ebx
push ebx
call fcn.005e28c2
add esp, 0x18
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x42cb06
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x42caef
mov dword [eax], 1
cmp edi, ebx
je 0x42caf5
mov dword [edi], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x42cef2
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30], eax
cmp dword [0x6b2eb0], ebx
je 0x42cb33
lea eax, [ebp + 0x864]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push str.NEWTHREAD__x_:_IsConnectionActive___for___s_
push ebx
call fcn.004f0f30
add esp, 0x10
push esi
call fcn.005e0909
add esp, 4
movzx eax, ax
mov edx, 2
mov word [ebp + 0x854], dx
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp + 0x856], ax
lea eax, [ebp + 0x864]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp + 0x858], eax
cmp eax, 0xffffffff
je 0x42cb8d
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x42cb8d
lea ecx, [ebp + 0x864]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 4], ebx
jne 0x42cb9e
push 1
call esi
jmp 0x42cb93
cmp edi, ebx
je 0x42cba7
mov edx, dword [ebp - 0x1c]
mov dword [edi], edx
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x42cbb4
mov dword [eax], 1
cmp dword [0x6b2eb0], ebx
je 0x42cbca
push str.WaitForSingleObjectEx...
push ebx
call fcn.004f0f30
add esp, 8
mov eax, dword [0x6b2eac]
push eax
push ebx
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0042b740
add esp, 0x10
mov esi, eax
cmp dword [0x6b2eb0], ebx
je 0x42cc16
cmp esi, 0x102
jne 0x42cbfb
push eax
push str.WaitForSingleObjectEx_Returned__WaitRes___d__WAIT_TIMEOUT__...
jmp 0x42cc0d
cmp esi, ebx
jne 0x42cc07
push ebx
push str.WaitForSingleObjectEx_Returned__WaitRes___d__WAIT_OBJECT_0__...
jmp 0x42cc0d
push esi
push str.WaitForSingleObjectEx_Returned__WaitRes___d__NON_WAIT_TIMEOUT__...
push ebx
call fcn.004f0f30
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea esp, [esp]
cmp esi, 0x102
jne 0x42ce31
mov eax, dword [ebp + 0x99c]
cmp eax, ebx
je 0x42cc76
cmp dword [eax], 1
jne 0x42cc76
cmp dword [ebp + 0x10], ebx
je 0x42cc76
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp eax, 1
jne 0x42ce31
cmp dword [ebp - 0x28], 0x103
jne 0x42ce31
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42ce31
cmp dword [0x6b2eb0], ebx
je 0x42cc93
mov eax, dword [ebp + 0x228]
push eax
push str._Stage:__d._Wait_Timeout
push ebx
call fcn.004f0f30
add esp, 0xc
mov eax, dword [ebp + 0x228]
cmp eax, 3
je 0x42cd72
cmp eax, 1
je 0x42cd68
inc dword [ebp - 0x2c]
mov ecx, dword [0x6b2eac]
push ecx
push ebx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0042b740
add esp, 0x10
mov esi, eax
call edi
sub eax, dword [ebp - 0x30]
cmp eax, 0x7148
jbe 0x42cc20
mov esi, dword [ebp - 0x20]
push esi
mov eax, dword [ebp - 0x24]
push eax
push eax
mov ecx, dword [ebp + 0x228]
push ecx
push str._TOX___Stage:__d._Terminating_Thread__0x_x_:__d___TO:__d
push ebx
call fcn.004f0f30
add esp, 0x18
push ebx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [0x6b2eb0], ebx
je 0x42cd28
cmp eax, 1
mov eax, dword [ebp - 0x24]
push eax
push eax
jne 0x42cd1a
push str._TOX___ThreadTerm_Success__0x_x_:__d_
jmp 0x42cd1f
push str._TOX___ThreadTerm_Failure__0x_x_:__d_
push ebx
call fcn.004f0f30
add esp, 0x10
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul edx, dword [ebp - 0x2c]
push edx
push str.Unable_to_connect__Timed_Out_within__d_secs__
lea eax, [ebp + 0x230]
push eax
call fcn.005dfb23
add esp, 0xc
cmp dword [0x6b2eb0], ebx
je 0x42ce31
lea ecx, [ebp + 0x230]
push ecx
push str._TOX___s
jmp 0x42ce28
cmp eax, 3
je 0x42cd72
cmp eax, 1
jne 0x42cda2
cmp dword [ebp + 0x10], ebx
je 0x42cda2
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp eax, 1
jne 0x42cdf0
cmp dword [ebp - 0x30], 0x103
jne 0x42cdf0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42cdf0
cmp dword [0x6b2eb0], ebx
je 0x42cdbe
mov ecx, dword [ebp - 0x24]
push ecx
push ecx
push eax
push str._Stage:__d._Terminating_Thread__0x_x_:__d_
push ebx
call fcn.004f0f30
add esp, 0x14
push ebx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [0x6b2eb0], ebx
je 0x42cdf0
cmp eax, 1
mov eax, dword [ebp - 0x24]
push eax
push eax
jne 0x42cde2
push str._ThreadTerm_Success__0x_x_:__d_
jmp 0x42cde7
push str._ThreadTerm_Failure__0x_x_:__d_
push ebx
call fcn.004f0f30
add esp, 0x10
mov eax, 0x10624dd3
mul dword [ebp - 0x20]
shr edx, 6
imul edx, dword [ebp - 0x2c]
push edx
push str.Unable_to_connect__Timed_Out_within__d_secs__
lea eax, [ebp + 0x230]
push eax
call fcn.005dfb23
add esp, 0xc
cmp dword [0x6b2eb0], ebx
je 0x42ce31
lea ecx, [ebp + 0x230]
push ecx
push 0x60c800
push ebx
call fcn.004f0f30
add esp, 0xc
mov esi, dword [ebp + 0x99c]
cmp esi, ebx
je 0x42ce40
cmp dword [esi], 1
je 0x42ce5a
cmp dword [ebp - 0x3c], ebx
jne 0x42ce5a
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x42ce5a
lea edx, [ebp + 0x64a]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1c]
push eax
call fcn.004dca10
cmp esi, ebx
je 0x42ce6c
cmp dword [esi], 1
je 0x42ceaf
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x42ce89
cmp byte [ebp + 0x230], bl
je 0x42ce89
lea ecx, [ebp + 0x230]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x42ceaf
cmp byte [ebp + 0x74e], bl
je 0x42ceaf
mov edx, dword [ebp + 0x990]
push edx
lea ecx, [ebp + 0x74e]
push ecx
push eax
call fcn.005e1e30
add esp, 0xc
cmp dword [0x6b2eb0], ebx
je 0x42cec5
push str.Exiting_IsConnectionActive__...
push ebx
call fcn.004f0f30
add esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xfffffffe
jmp 0x42cef2
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x968]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x96c
mov esp, ebp
pop ebp
ret