Function at 0x43c240
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
call sym._pop_pthread_mem
test eax, eax
je 0x43c494
mov ebx, eax
test ebp, ebp
je 0x43c26b
mov eax, dword [eax + 0xb4]
mov dword [ebp], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x68], 0
xor esi, esi
mov dword [ebx + 0x24], 1
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x14], 0xffffffff
mov dword [ebx + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call sym._CreateEventA_16
mov dword [ebx + 0x18], eax
sub esp, 0x10
test eax, eax
jne 0x43c2de
add esi, 1
cmp esi, 1
je 0x43c3d8
mov dword [esp], 0x14
call sym._Sleep_4
sub esp, 4
cmp esi, 5
jne 0x43c290
lea esi, [ebx + 0x38]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [esp], esi
call sym._pthread_spin_destroy
cmp eax, 1
je 0x43c4ce
mov edx, dword [ebx + 0x18]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx], 0xbab1f00d
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x64], 0
test edx, edx
je 0x43c47f
xor edx, edx
test edi, edi
je 0x43c33b
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov dword [ebx + 0x24], eax
test al, 8
jne 0x43c4a8
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x6c], eax
lock or dword [esp], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], sym._pthread_create_wrapper
mov dword [esp + 4], edx
mov dword [esp], 0
call sym.__beginthreadex
mov edi, eax
lea eax, [eax - 1]
cmp eax, 0xfffffffd
ja 0x43c440
mov edx, dword [ebx + 0x6c]
mov eax, 0xfffffff1
cmp edx, 0xfffffff2
jge 0x43c410
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SetThreadPriority_8
mov eax, dword [ebx + 0x18]
sub esp, 8
mov dword [esp], eax
call sym._ResetEvent_4
sub esp, 4
test byte [ebx + 0x24], 4
jne 0x43c3f0
mov dword [ebx + 0x14], edi
mov dword [esp], edi
call sym._ResumeThread_4
sub esp, 4
mov dword [esp], 0
call sym._Sleep_4
xor eax, eax
sub esp, 4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
call sym._Sleep_4
sub esp, 4
jmp 0x43c290
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call sym._ResumeThread_4
sub esp, 4
mov dword [esp], edi
call sym._CloseHandle_4
sub esp, 4
jmp 0x43c3bc
mov eax, 0xfffffffe
cmp edx, 0xffffffff
jl 0x43c38b
mov eax, 0xf
cmp edx, 0xe
jg 0x43c38b
cmp edx, 2
mov eax, 2
cmovle eax, edx
jmp 0x43c38b
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x43c452
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
mov dword [esp], esi
call sym._pthread_spin_destroy
cmp eax, 1
je 0x43c4ce
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
test ebp, ebp
je 0x43c48a
mov dword [ebp], 0
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x43c4c0
mov eax, 0xb
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], edx
call sym.___pthread_self_lite
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 0x6c]
mov dword [ebx + 0x6c], eax
jmp 0x43c33b
mov eax, ebx
call sym._push_pthread_mem.part.0
mov eax, 0xb
jmp 0x43c499
call sym._replace_spin_keys.part.0
lea esi, [esi]
lea esi, [esi]