Function at 0x41c990
Capabilities:
Terminate thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x443660
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 0x41c9ce
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 0x41ca14
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x32
jae 0x41c9f6
push 0xa
call ebx
inc edi
mov al, byte [esi + 0xac]
test al, al
jne 0x41c9e2
mov al, byte [esi + 0xac]
test al, al
je 0x41ca14
mov eax, dword [esi + 0xa8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x41cc27
push ebp
mov ecx, esi
call fcn.0041c760
mov ecx, esi
call fcn.0041c810
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 0x41cb65
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 0x41caa4
cmp eax, dword [esi + 0xcc]
jne 0x41cb53
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 0x41cb1b
lea ecx, [esp + 0x24]
call fcn.0041ef90
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 0x41cb53
mov eax, dword [esi + 0xd4]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0041f210
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 0x41ca50
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 0x41cbe2
mov ecx, eax
cmp eax, ecx
jne 0x41cbe2
cmp ebp, ebp
jne 0x41cbe2
mov ecx, dword [ebp + 4]
push ecx
mov ecx, edi
call fcn.0041e520
mov edx, dword [edi + 4]
mov eax, dword [0x454dac]
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.0041d380
jmp 0x41cc10
cmp eax, ebp
je 0x41cc0c
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
call fcn.0041f2a0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, edi
call fcn.0041e0e0
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x41cbe6
mov dword [esp + 0x18], eax
push ebx
mov dword [esp + 0x60], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
call fcn.0041cc60
pop ebp
lea ecx, [esi + 4]
call fcn.0041fd50
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