Function at 0x5445e0
Capabilities:
Create thread
Resume thread
Suspend thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x10]
push ebx
sub esp, 0x20
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x542a30
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x20d
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 4], str.Create_Thread_failed_n
mov dword [esp], eax
call fcn.00543700
call fcn.0057d110
mov edx, dword [sym.imp.kernel32.dll_SuspendThread]
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x20f
mov dword [esp], ebx
mov dword [ebp - 0x14], edx
call edx
sub esp, 4
cmp eax, 1
sete al
mov dword [esp + 4], str.Thread_did_not_start_suspended_n
movzx eax, al
mov dword [esp], eax
call fcn.00543700
call fcn.0057d110
mov edi, dword [sym.imp.kernel32.dll_ResumeThread]
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x210
mov dword [esp], ebx
call edi
sub esp, 4
cmp eax, 2
sete al
mov dword [esp + 4], str.Resume_thread_returned_an_invalid_value_n
movzx eax, al
mov dword [esp], eax
call fcn.00543700
call fcn.0057d110
mov esi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x215
mov dword [esp + 4], 0x3e8
mov dword [esp], ebx
call esi
sub esp, 8
cmp eax, 0x102
sete al
mov dword [esp + 4], str.ResumeThread_should_not_have_actually_started_the_thread_n
movzx eax, al
mov dword [esp], eax
call fcn.00543700
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x218
mov dword [esp], ebx
call edi
sub esp, 4
cmp eax, 1
sete al
mov dword [esp + 4], str.Resume_thread_returned_an_invalid_value_n
movzx eax, al
mov dword [esp], eax
call fcn.00543700
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x219
mov dword [esp + 4], 0x3e8
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
mov esi, eax
sete al
mov dword [esp + 4], str.Thread_did_not_resume_n
movzx eax, al
mov dword [esp], eax
call fcn.00543700
test esi, esi
mov edx, dword [ebp - 0x14]
jne 0x544840
mov dword [esp], ebx
call edx
sub esp, 4
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x220
xor eax, eax
cmp esi, 0xffffffff
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.SuspendThread_returned__ld__expected__1_n
mov dword [esp], eax
call fcn.00543700
mov dword [esp], ebx
call edi
sub esp, 4
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x223
mov eax, 1
test esi, esi
je 0x5447ee
mov eax, dword [0x8f0770]
test eax, eax
sete dl
xor eax, eax
cmp esi, 0xffffffff
sete al
and eax, edx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.ResumeThread_returned__ld__expected_0_n
call fcn.00543700
call fcn.0057d110
mov dword [eax], 0x5f810b
mov dword [eax + 4], 0x227
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test eax, eax
setne al
mov dword [esp + 4], str.CloseHandle_failed_n
movzx eax, al
mov dword [esp], eax
call fcn.00543700
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_TerminateThread]
mov edx, dword [ebp - 0x14]
sub esp, 8
jmp 0x54477d