Function at 0x10009230
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10058014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov edi, ecx
mov dword [ebp - 0x20], ebx
push 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
jne 0x100092e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov edi, eax
call dword [edx]
mov ecx, dword [0x10058070]
mov eax, dword [0x10058074]
cmp ecx, 0x25c5e09b
jne 0x10009295
cmp eax, 0x8fafd21e
je 0x100092a4
cmp ecx, 0x257edf0d
jne 0x100092ab
cmp eax, 0xb2ab117a
jne 0x100092ab
test edi, edi
setne al
jmp 0x100092bb
mov eax, dword [0x10058068]
mov ecx, 0x10058068
push edi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x10058068
cmp eax, 1
jne 0x100092da
test edi, edi
setne al
jmp 0x100092dc
and al, 1
test al, al
jne 0x1000945c
mov edi, dword [ebp - 0x18]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
mov dword [ebx + 8], eax
cmp dword [edi + 8], 0
jne 0x1000937d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov edi, eax
call dword [edx]
mov ecx, dword [0x10058070]
mov eax, dword [0x10058074]
cmp ecx, 0x25c5e09b
jne 0x1000932b
cmp eax, 0x8fafd21e
je 0x1000933a
cmp ecx, 0x257edf0d
jne 0x10009341
cmp eax, 0xb2ab117a
jne 0x10009341
test edi, edi
setne al
jmp 0x10009351
mov eax, dword [0x10058068]
mov ecx, 0x10058068
push edi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x10058068
cmp eax, 1
jne 0x10009370
test edi, edi
setne al
jmp 0x10009372
and al, 1
test al, al
jne 0x10009469
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push ebx
push 0x10009490
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
mov dword [edi + 4], eax
test eax, eax
jne 0x10009439
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x20]
mov edi, eax
push 1
mov edx, dword [ecx]
call dword [edx]
test esi, esi
je 0x100093c7
push esi
call ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x100093d4
push eax
call ebx
mov ecx, dword [0x10058070]
mov eax, dword [0x10058074]
cmp ecx, 0x25c5e09b
jne 0x100093ee
cmp eax, 0x8fafd21e
je 0x100093fd
cmp ecx, 0x257edf0d
jne 0x10009404
cmp eax, 0xb2ab117a
jne 0x10009404
test edi, edi
setne al
jmp 0x10009414
mov eax, dword [0x10058068]
mov ecx, 0x10058068
push edi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x10058068
cmp eax, 1
jne 0x10009433
test edi, edi
setne al
jmp 0x10009435
and al, 1
test al, al
jne 0x10009476
test esi, esi
je 0x10009449
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041f5c
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [ebp - 0x10]
call fcn.10007cc0
mov edx, str.thread.exit_event
lea ecx, [ebp - 0x10]
call fcn.10007cc0
mov edx, str.thread
lea ecx, [ebp - 0x10]
call fcn.10007cc0
int3