Function at 0x4559e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6ca5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x8a8]
test eax, eax
je 0x455a1e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueEx]
cmp dword [ebx + 0xc], 0
je 0x455cff
lea eax, [ebx + 0x890]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x874]
mov esi, dword [eax]
cmp esi, eax
je 0x455ae3
mov edi, dword [esi + 0x10]
test edi, edi
je 0x455a97
mov eax, dword [edi]
test eax, eax
je 0x455a7a
push 0x1388
push eax
mov byte [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x455a74
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi], 0
mov edi, dword [esi + 0x10]
test edi, edi
je 0x455a90
push edi
call fcn.00451790
push edi
call fcn.004d5559
add esp, 4
mov dword [esi + 0x10], 0
cmp byte [esi + 0x15], 0
jne 0x455ad7
mov eax, dword [esi + 8]
cmp byte [eax + 0x15], 0
jne 0x455abc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
jne 0x455ad7
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
je 0x455ab0
jmp 0x455ad7
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x455ad5
cmp esi, dword [eax + 8]
jne 0x455ad5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x455ac5
mov esi, eax
cmp esi, dword [ebx + 0x874]
jne 0x455a45
mov ecx, dword [ebx + 0x874]
lea esi, [ebx + 0x870]
mov ebx, dword [ecx + 4]
cmp byte [ebx + 0x15], 0
mov edi, ebx
jne 0x455b1e
lea ebx, [ebx]
mov edx, dword [edi + 8]
push edx
mov ecx, esi
call fcn.0044ad00
mov edi, dword [edi]
push ebx
call fcn.004d5559
add esp, 4
cmp byte [edi + 0x15], 0
mov ebx, edi
je 0x455b00
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
xor ebx, ebx
mov dword [esi + 8], ebx
mov eax, dword [ecx + 0x884]
mov edi, dword [eax]
cmp edi, eax
je 0x455c4e
jmp 0x455b50
mov esi, dword [edi + 0x10]
cmp esi, ebx
je 0x455bfd
mov eax, dword [esi]
cmp eax, ebx
je 0x455b84
push 0x1388
push eax
mov byte [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x455b82
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi], ebx
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x455bf7
mov dword [ebp - 4], 1
cmp dword [esi + 0x40], 8
jb 0x455ba7
mov eax, dword [esi + 0x2c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [esi + 0x40], 7
mov dword [esi + 0x3c], ebx
mov word [esi + 0x2c], cx
mov byte [ebp - 4], cl
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], cl
mov eax, dword [eax]
cmp eax, ebx
je 0x455bd1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
or ecx, 0xffffffff
mov dword [ebp - 4], ecx
lea eax, [esi + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x455bee
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call fcn.004d5559
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [edi + 0x10], ebx
cmp byte [edi + 0x15], 0
jne 0x455c42
mov eax, dword [edi + 8]
cmp byte [eax + 0x15], 0
jne 0x455c22
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x15], 0
jne 0x455c42
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x15], 0
je 0x455c16
jmp 0x455c42
mov eax, dword [edi + 4]
cmp byte [eax + 0x15], 0
jne 0x455c40
jmp 0x455c30
cmp edi, dword [eax + 8]
jne 0x455c40
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x455c30
mov edi, eax
cmp edi, dword [ecx + 0x884]
jne 0x455b50
mov eax, dword [ecx + 0x884]
mov ebx, dword [eax + 4]
cmp byte [ebx + 0x15], 0
lea esi, [ecx + 0x880]
mov edi, ebx
jne 0x455c83
mov ecx, dword [edi + 8]
push ecx
mov ecx, esi
call fcn.0044ad00
mov edi, dword [edi]
push ebx
call fcn.004d5559
add esp, 4
cmp byte [edi + 0x15], 0
mov ebx, edi
je 0x455c65
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov eax, dword [ebp + 8]
add eax, 0x890
push eax
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x10]
push 0
push 0
push 0x12
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, dword [esi + 0xc]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x455ce9
mov ecx, dword [esi + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4