Function at 0x468630
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a83b8
push 0x47d4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x19], 0
movzx eax, byte [0x4c8cec]
test eax, eax
je 0x46892e
push 0x4c8d04
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov ecx, dword [0x4c8cf8]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], 0
jmp 0x4686a1
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x30]
jge 0x4686f0
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x4c8cf4]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call sub.MSVCR110.dll__stricmp
add esp, 8
test eax, eax
jne 0x4686ee
mov edx, dword [ebp - 0x24]
mov eax, dword [0x4c8cf4]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, 0x4c8cf4
call fcn.00469eb0
jmp 0x4686f0
jmp 0x468698
mov dword [ebp - 4], 0xffffffff
call fcn.004686fe
jmp 0x46870a
cmp dword [ebp - 0x20], 0
je 0x46892e
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x38], 1
push 0
push 1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push edx
call fcn.004677c0
add esp, 8
push 0xc
push 0
lea eax, [ebp - 0x5c]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [0x4c8cdc]
push eax
push 0x48aef8
call fcn.00467960
add esp, 8
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x64
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x46892e
mov dword [ebp - 0x24], 0
jmp 0x46880a
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x44]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x40]
jge 0x4688ab
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x24]
cmp dword [edx + eax*4], 0
je 0x4688a6
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x64
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0xc], 0
je 0x46889c
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x468801
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
je 0x4688e6
mov ecx, dword [ebp - 0x2c]
call fcn.00470c70
mov edx, 1
and edx, 1
je 0x4688de
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], ecx
jmp 0x4688ed
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 0x19], 1
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret