Function at 0x40f250
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0xfeedbab1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 1
call sym._pop_pthread_mem
test eax, eax
mov esi, eax
je 0x40f44b
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f296
mov eax, dword [esi + 0xbc]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
mov ebx, 1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esi + 0x70], 0
mov dword [esi + 0x24], 1
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
sub esp, 0x10
test eax, eax
mov dword [esi + 0x18], eax
jne 0x40f4f0
cmp ebx, 1
je 0x40f310
mov dword [esp], 0x14
call edi
sub esp, 4
cmp ebx, 5
je 0x40f322
add ebx, 1
jmp 0x40f2c2
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x40f30b
mov ecx, dword [ebp - 0x28]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi], 0xbab1f00d
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp - 0x24]
test eax, eax
mov dword [esi + 0x74], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x38], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x40], ecx
je 0x40f42d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40f532
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax]
mov ebx, dword [edx + 8]
test al, 8
mov dword [esi + 0x24], eax
jne 0x40f4d1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x74], eax
mov dword [esp + 4], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], sym._pthread_create_wrapper
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
cmp eax, 0xffffffff
mov ebx, eax
je 0x40f3f0
test eax, eax
je 0x40f3f0
mov eax, dword [esi + 0x74]
cmp eax, 0xfffffff2
jl 0x40f458
cmp eax, 0xffffffff
jl 0x40f4e1
cmp eax, 0xe
jg 0x40f528
cmp eax, 2
mov ecx, 2
cmovge eax, ecx
jmp 0x40f45d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40f403
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [esi + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x18], 0
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f43d
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x40f539
lea esp, [ebp - 0xc]
mov eax, 0xb
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xfffffff1
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x18]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
sub esp, 4
test byte [esi + 0x24], 4
je 0x40f4c0
mov dword [esi + 0x14], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esi + 0x14], ebx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
jmp 0x40f4a1
call sym.___pthread_self_lite
mov eax, dword [eax + 0x74]
mov dword [esi + 0x74], eax
jmp 0x40f38a
mov eax, 0xfffffffe
jmp 0x40f45d
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi], 0xbab1f00d
mov dword [esi + 0x74], 0
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x40], eax
jmp 0x40f360
mov eax, 0xf
jmp 0x40f45d
xor ebx, ebx
jmp 0x40f38a
mov eax, esi
call sym._push_pthread_mem.part.0
jmp 0x40f44b