Function at 0x10006180
Capabilities:
Terminate thread

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100063ea
mov dword [ecx], 0x1000f808
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov edx, 2
mov dword [ebp - 0x10], ecx
push esi
mov ecx, 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], cl
mov byte [ebp - 4], dl
mov dword [eax + 0x2ec], ecx
mov eax, dword [eax + 0x2e0]
test eax, eax
je 0x100061e6
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], dl
call fcn.10006301
mov eax, dword [ebp - 0x14]
push eax
call sub.MSVCRT40.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2e0], 0
mov eax, dword [eax + 0x2b0]
test eax, eax
je 0x10006272
lea ecx, [ebp - 0x18]
mov eax, dword [eax + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10006272
cmp dword [ebp - 0x18], 0x103
jne 0x10006272
push 0x3a98
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2b4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10006265
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2b0]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x2b0]
test ecx, ecx
je 0x1000625d
push 1
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
call fcn.10008110
push 0x100114dc
mov ecx, dword [ebp - 0x10]
call fcn.10009000
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x2b0], 0
je 0x10006285
mov ecx, eax
call fcn.10008110
mov ecx, dword [ebp - 0x10]
call fcn.10006a70
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x2dc]
test eax, eax
je 0x100062b2
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], eax
call fcn.10006309
mov eax, dword [ebp - 0x14]
push eax
call sub.MSVCRT40.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
push 0x100114e0
mov dword [0x10011218], 0
mov dword [eax + 0x2dc], 0
lea ecx, [eax + 0x27c]
call sub.MFC40.DLL_CString::operator
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x37c]
test eax, eax
je 0x10006311
push eax
mov esi, dword [sym.imp.MSVCRT40.dll_free]
call esi
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x37c], 0
jmp 0x10006317
mov esi, dword [sym.imp.MSVCRT40.dll_free]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x380]
test eax, eax
je 0x10006337
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x380], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x388]
test eax, eax
je 0x10006357
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x388], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x390]
test eax, eax
je 0x10006377
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x390], 0
push 0x10011eb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10011eb8
dec dword [0x1001122c]
mov esi, dword [0x1001122c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x100063a2
call fcn.1000c320
mov byte [ebp - 4], 1
call fcn.100063ce
mov byte [ebp - 4], 0
call fcn.100063dc
mov dword [ebp - 4], 0xffffffff
call fcn.100063f4
mov eax, dword [ebp - 0xc]
pop esi
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret