Function at 0x409690
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4509af
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x46c098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push 0x8000
push 0
call fcn.00430b12
push eax
call fcn.00430a24
add esp, 8
push eax
call fcn.00430845
add esp, 8
push 0x8000
push 1
call fcn.00430b12
push eax
call fcn.00430a24
add esp, 8
push eax
call fcn.00430845
add esp, 8
push 0x8000
push 2
call fcn.00430b12
push eax
call fcn.00430a24
add esp, 8
push eax
call fcn.00430845
push 0x13c
lea eax, [ebp - 0x15c]
push 0
push eax
call fcn.0042ddc0
add esp, 0x14
lea ecx, [ebp - 0x15c]
call fcn.00404160
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x15c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x178], eax
call fcn.00409b50
test eax, eax
je 0x4099b6
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], vtable.CMonitorWinThread.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00409440
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x15c]
call dword [eax + 0x18]
lea ecx, [ebp - 0x15c]
call fcn.004065f0
call fcn.004214d0
lea eax, [ebp - 0x190]
push eax
call fcn.00422de0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 0x10
jb 0x4097c6
mov edx, dword [edx]
mov dword [ebp - 0x160], 0xf
mov dword [ebp - 0x164], 0
mov byte [ebp - 0x174], 0
cmp byte [edx], 0
jne 0x4097ea
xor ecx, ecx
jmp 0x4097f9
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4097f0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x174]
call fcn.00402dd0
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 3
push str.TaguiMonitor_begin
push eax
call fcn.00421490
add esp, 4
push eax
call fcn.004215a0
mov eax, dword [ebp - 0x160]
add esp, 8
cmp eax, 0x10
jb 0x409845
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.00403540
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x160], 0xf
mov dword [ebp - 0x164], 0
mov byte [ebp - 0x174], 0
cmp eax, 0x10
jb 0x409882
inc eax
lea ecx, [ebp - 0x190]
push eax
push dword [ebp - 0x190]
call fcn.00403540
lea ecx, [ebp - 0x178]
call fcn.004099e0
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x15c]
push 0x7d0
call dword [eax + 0x1c]
cmp dword [ebp - 0x1c], 0
je 0x4098d3
push 0x3e8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4098d3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4098d3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 0x18], 0
call fcn.004214d0
lea eax, [ebp - 0x190]
push eax
call fcn.00422de0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 0x10
jb 0x4098f5
mov edx, dword [edx]
mov dword [ebp - 0x160], 0xf
mov dword [ebp - 0x164], 0
mov byte [ebp - 0x174], 0
cmp byte [edx], 0
jne 0x409919
xor ecx, ecx
jmp 0x409929
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409920
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x174]
call fcn.00402dd0
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 5
push str.TaguiMonitor_end
push eax
call fcn.00421490
add esp, 4
push eax
call fcn.004215a0
mov eax, dword [ebp - 0x160]
add esp, 8
cmp eax, 0x10
jb 0x409975
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.00403540
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x160], 0xf
mov dword [ebp - 0x164], 0
mov byte [ebp - 0x174], 0
cmp eax, 0x10
jb 0x4099ae
inc eax
lea ecx, [ebp - 0x190]
push eax
push dword [ebp - 0x190]
call fcn.00403540
lea ecx, [ebp - 0x20]
call fcn.00408a20
lea ecx, [ebp - 0x15c]
call fcn.00404330
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042aad6
mov esp, ebp
pop ebp
ret