Function at 0x53d690
Capabilities:
Create process on windows
Create thread
Resume thread
Suspend thread
Terminate process

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x150]
push ebx
lea ebx, [ebp - 0x110]
sub esp, 0x198
mov dword [ebp - 0x154], 0x44
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x174]
lea edi, [ebp - 0x164]
mov dword [esp], eax
call fcn.0057d960
mov eax, dword [ebp - 0x174]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], str.__s__sync_apc_deadlock
mov dword [esp + 8], eax
call fcn.00536b90
lea eax, [ebp - 0x154]
mov dword [esp + 0x24], edi
mov dword [esp + 4], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x174]
mov ebx, dword fs:[0x18]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5f5ef4
mov dword [eax + 4], 0xa82
mov eax, dword [ebx + 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str.CreateProcess_failed_with__lu_n
call fcn.00538680
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventA]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5f5ef4
mov dword [eax + 4], 0xa85
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateEvent_failed_with__lu_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.00538680
lea eax, [ebp - 0x170]
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x168], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x53d260
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov edi, eax
mov dword [ebp - 0x17c], eax
call fcn.0057d110
mov dword [eax], 0x5f5ef4
mov dword [eax + 4], 0xa8c
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateThread_failed_with__lu_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp], eax
call fcn.00538680
mov dword [esp], esi
mov edi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov dword [esp + 4], 0x3e8
call edi
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f5ef4
mov dword [eax + 4], 0xa8e
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x5f6064
mov dword [esp], eax
call fcn.00538680
mov dword [ebp - 0x178], 0x3e8
jmp 0x53d93c
call fcn.0057d110
mov dword [eax], 0x5f5ef4
mov dword [eax + 4], 0xa9e
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x5f6064
mov dword [esp], eax
call fcn.00538680
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ResumeThread]
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f5ef4
mov dword [eax + 4], 0xaa1
xor eax, eax
cmp ebx, 1
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.expected_1__got__lu_n
mov dword [esp], eax
call fcn.00538680
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
sub dword [ebp - 0x178], 1
je 0x53da40
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x53da40
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SuspendThread]
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f5ef4
mov dword [eax + 4], 0xa93
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.expected_0__got__lu_n
mov dword [esp], eax
call fcn.00538680
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
sub esp, 8
mov dword [esp + 4], 0x3e8
mov dword [esp], esi
call edi
sub esp, 8
mov ebx, eax
cmp eax, 0x102
jne 0x53d8b0
mov ebx, dword [0x8f0770]
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test ebx, ebx
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x53da16
call fcn.0057d110
mov dword [eax], 0x5f5ef4
mov dword [eax + 4], 0xa9a
mov dword [esp + 8], 0x102
mov dword [esp + 4], 0x5f6064
mov dword [esp], 0
call fcn.00538680
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x53d9e0
mov dword [ebp - 0x168], 0
jmp 0x53d8dd
mov dword [ebp - 0x168], 0
mov dword [esp + 4], 0x3e8
mov eax, dword [ebp - 0x17c]
mov dword [esp], eax
call edi
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5f5ef4
mov dword [eax + 4], 0xaa7
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x5f6064
call fcn.00538680
mov eax, dword [ebp - 0x17c]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [esp], esi
call ebx
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, dword [ebp - 0x160]
sub esp, 8
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x164]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret