Function at 0x1f028570
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1f0563b8
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [esp + 0x80]
xor ebx, ebx
cmp esi, ebx
je 0x1f028866
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x1f028866
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
push ebx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x78]
push ebx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x70]
push ebx
push ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x40], eax
cmp eax, ebx
jne 0x1f028619
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0x28
push edi
push esi
push ebx
push 0x5a
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
cmp edi, ebx
jne 0x1f028661
push 0x10
push str.Error
push str.Error_opening_specified_thread
push ebx
call fcn.1f020690
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0x28
push edi
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea ecx, [esp + 0x10]
mov dword [esp + 0x8c], eax
call fcn.1f0361b0
mov dword [esp + 0x60], ebx
lea ecx, [esp + 0x10]
call fcn.1f0361d0
mov eax, dword [0x1f0837b0]
push 0x40
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x10]
push edx
push edi
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.1f0363f0
test eax, eax
jne 0x1f0286f9
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1f0837b0]
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.1f029120
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0x28
mov ebx, dword [esp + 0x84]
add ebx, 4
mov cl, 0x50
push ebp
mov ebp, dword [ebx]
mov byte [esi], cl
mov byte [esi + 1], cl
mov byte [esi + 2], 0x53
mov byte [esi + 3], 0x51
mov byte [esi + 4], 0x52
mov byte [esi + 5], 0x56
mov byte [esi + 6], 0x57
mov byte [esi + 7], 0x9c
mov al, 0xb8
mov byte [esi + 8], al
lea edx, [esp + 0x2c]
mov dword [esi + 9], edx
mov byte [esi + 0xd], cl
mov byte [esi + 0xe], al
mov dword [esi + 0xf], 0x1f028500
mov byte [esi + 0x13], 0xff
mov byte [esi + 0x14], 0xd0
mov byte [esi + 0x15], 0x9d
mov byte [esi + 0x16], 0x5f
mov byte [esi + 0x17], 0x5e
mov byte [esi + 0x18], 0x5a
mov byte [esi + 0x19], 0x59
mov byte [esi + 0x1a], 0x5b
mov byte [esi + 0x1b], 0x58
mov byte [esi + 0x1c], 0xc3
mov dword [esp + 0x54], ebp
mov dword [ebx], esi
lea esp, [esp]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1f028781
cmp eax, 1
jne 0x1f028770
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x48]
push edx
mov dword [esp + 0x88], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x84], 0
je 0x1f02880a
push esi
mov dword [ebx], ebp
mov eax, dword [0x1f0837b0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
cmp eax, dword [esp + 0x90]
jae 0x1f0287db
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1f0287c6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.1f029120
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0x28
mov esi, dword [esp + 0x90]
mov ebx, dword [esp + 0x4c]
test esi, esi
jne 0x1f028822
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1f028837
mov eax, 1
cmp eax, esi
jae 0x1f028837
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1f028827
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.1f029120
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0x28
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
push ecx
push edx
call fcn.1f028480
mov ecx, dword [esp + 0x74]
add esp, 0x20
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0x28