Function at 0x40681a
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449dc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406a60
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x406872
jmp 0x406a07
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x406891
mov dword [ebp - 0x28], 1
jmp 0x406a07
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.0040677a
lea ecx, [ebp - 0x20]
call fcn.00406b00
mov dword [ebp - 0x30], eax
jmp 0x4068b3
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x20]
call fcn.00406b20
cmp dword [ebp - 0x30], eax
je 0x4069ba
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
push edx
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4068e9
jmp 0x406a07
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.004066de
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x38]
jae 0x4069a4
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x24]
cmp dword [ebp - 0x38], edx
jae 0x4069a4
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
push edx
push str.Thread_id_:__08x__Thread_address_:__08x__n
mov eax, dword [ebp - 0x48]
push eax
call fcn.004066ca
add esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x406992
mov dword [ebp - 0x3c], 0
mov ecx, 1
test ecx, ecx
je 0x40696f
push 0xbb8
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40695c
jmp 0x40696f
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 4
jl 0x40696d
jmp 0x40696f
jmp 0x40693b
cmp dword [ebp - 0x3c], 4
jl 0x406992
push str.TTTT_unload_dll_time_out
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004066ca
add esp, 8
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406a07
cmp dword [ebp + 0xc], 1
jne 0x4069a4
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0
jmp 0x4068aa
mov edx, 1
test edx, edx
je 0x406a00
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4069e2
jmp 0x406a00
cmp dword [ebp - 0x10], 0xa
jl 0x4069ea
jmp 0x406a00
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x4069ba
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00406aa0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8