Function at 0x6f214a18
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0xffffffff
call fcn.6f212858
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x6f214a52
mov eax, 0xb
jmp 0x6f214d7a
cmp dword [ebp + 8], 0
je 0x6f214a66
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xb4]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0x10]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x6f214afa
cmp dword [ebp - 0x10], 0
jne 0x6f214adc
mov eax, 0
jmp 0x6f214ae1
mov eax, 0x14
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 4
jle 0x6f214a96
jmp 0x6f214afb
nop
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.6f21294f
mov eax, dword [ebp - 0x20]
mov dword [eax], 0xbab1f00d
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x6c], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x6f214b77
cmp dword [ebp + 8], 0
je 0x6f214b62
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.6f212766
mov eax, 0xb
jmp 0x6f214d7a
cmp dword [ebp + 0xc], 0
je 0x6f214bcd
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.hal.dll_pthread_attr_getinheritsched
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x6f214bc1
call fcn.6f2139ef
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x6c], edx
jmp 0x6f214bcd
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x6c], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], sym.hal.dll_pthread_create_wrapper
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x6f214c11
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x6f214ca5
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6f214c38
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
add eax, 0x1c
mov dword [esp], eax
call sym.hal.dll_pthread_mutex_destroy
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.6f21294f
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
cmp dword [ebp + 8], 0
je 0x6f214c90
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.6f212766
mov eax, 0xb
jmp 0x6f214d7a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfffffff2
jge 0x6f214cbd
mov dword [ebp - 0x18], 0xfffffff1
jmp 0x6f214ce8
cmp dword [ebp - 0x18], 0xffffffff
jge 0x6f214ccc
mov dword [ebp - 0x18], 0xfffffffe
jmp 0x6f214ce8
cmp dword [ebp - 0x18], 0xe
jle 0x6f214cdb
mov dword [ebp - 0x18], 0xf
jmp 0x6f214ce8
cmp dword [ebp - 0x18], 1
jle 0x6f214ce8
mov dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call eax
sub esp, 8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x6f214d4b
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
jmp 0x6f214d64
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, 0
leave
ret