Function at 0x41cc10
Capabilities:
Terminate thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x444f80
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
mov esi, ecx
mov byte [esi + 0xad], 1
mov eax, dword [esi + 0xa8]
test eax, eax
jne 0x41cc4e
xor eax, eax
pop esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
push ebx
push edi
xor edi, edi
mov al, byte [esi + 0xac]
test al, al
je 0x41cc94
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x32
jae 0x41cc76
push 0xa
call ebx
inc edi
mov al, byte [esi + 0xac]
test al, al
jne 0x41cc62
mov al, byte [esi + 0xac]
test al, al
je 0x41cc94
mov eax, dword [esi + 0xa8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x41cea7
push ebp
mov ecx, esi
call fcn.0041c9e0
mov ecx, esi
call fcn.0041ca90
lea edi, [esi + 0xfc]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xf0]
mov dword [esp + 0x5c], 0
test eax, eax
jbe 0x41cde5
lea ebx, [esi + 0xc8]
mov ecx, ebx
mov edx, dword [ecx]
mov dword [esp + 0x44], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 8]
mov eax, dword [eax]
mov ecx, dword [ecx + 0xc]
push eax
mov dword [esp + 0x54], ecx
call sub.MFC42.DLL_operatordelete
mov edi, dword [esi + 0xd0]
mov edx, dword [esi + 0xf0]
add esp, 4
add edi, 4
dec edx
mov dword [esi + 0xd0], edi
mov ecx, edx
mov eax, edi
test ecx, ecx
mov dword [esi + 0xf0], edx
je 0x41cd24
cmp eax, dword [esi + 0xcc]
jne 0x41cdd3
mov eax, dword [esi + 0xd4]
lea edx, [eax + 4]
mov dword [esi + 0xd4], edx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 0xf0]
add esp, 4
test eax, eax
jne 0x41cd9b
lea ecx, [esp + 0x24]
call fcn.0041f210
mov ecx, dword [esp + 0x28]
lea eax, [esi + 0xc8]
mov edx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
lea ebp, [esi + 0xd8]
mov dword [esi + 0xd8], eax
mov eax, dword [esi + 0xe8]
push eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x41cdd3
mov eax, dword [esi + 0xd4]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0041f490
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
lea ecx, [esi + 0xc8]
mov dword [esi + 0xc8], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0xf0]
test eax, eax
ja 0x41ccd0
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebx, [esi + 0x134]
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esi + 0x128]
mov ecx, dword [esi + 0x130]
lea edi, [esi + 0x124]
mov dword [esp + 0x5c], 1
mov eax, dword [ebp]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x41ce62
mov ecx, eax
cmp eax, ecx
jne 0x41ce62
cmp ebp, ebp
jne 0x41ce62
mov ecx, dword [ebp + 4]
push ecx
mov ecx, edi
call fcn.0041e7a0
mov edx, dword [edi + 4]
mov eax, dword [0x456e98]
lea ecx, [esp + 0x18]
mov dword [edx + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 0xc], 0
push ecx
mov dword [eax], eax
mov eax, dword [edi + 4]
mov ecx, edi
mov dword [eax + 8], eax
call fcn.0041d600
jmp 0x41ce90
cmp eax, ebp
je 0x41ce8c
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
call fcn.0041f520
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, edi
call fcn.0041e360
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x41ce66
mov dword [esp + 0x18], eax
push ebx
mov dword [esp + 0x60], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
call fcn.0041cee0
pop ebp
lea ecx, [esi + 4]
call fcn.00420260
mov ecx, dword [esi + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x50]
pop edi
mov dword [esi + 0xa8], 0
pop ebx
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret