Function at 0x4d6376
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 sym._pop_pthread_mem
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4d63b0
mov eax, 0xb
jmp 0x4d66d7
cmp dword [ebp + 8], 0
je 0x4d63c4
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
je 0x4d642f
jmp 0x4d6458
cmp dword [ebp - 0x10], 0
jne 0x4d643c
mov eax, 0
jmp 0x4d6441
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 0x4d63f4
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 sym._replace_spin_keys
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 0x4d64d4
cmp dword [ebp + 8], 0
je 0x4d64bf
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._push_pthread_mem
mov eax, 0xb
jmp 0x4d66d7
cmp dword [ebp + 0xc], 0
je 0x4d652a
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._pthread_attr_getinheritsched
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4d651e
call sym.___pthread_self_lite
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x6c], edx
jmp 0x4d652a
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._pthread_create_wrapper
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.msvcrt.dll__beginthreadex]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4d656e
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x4d6602
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4d6595
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._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 sym._replace_spin_keys
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 0x4d65ed
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._push_pthread_mem
mov eax, 0xb
jmp 0x4d66d7
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfffffff2
jge 0x4d661a
mov dword [ebp - 0x18], 0xfffffff1
jmp 0x4d6645
cmp dword [ebp - 0x18], 0xffffffff
jge 0x4d6629
mov dword [ebp - 0x18], 0xfffffffe
jmp 0x4d6645
cmp dword [ebp - 0x18], 0xe
jle 0x4d6638
mov dword [ebp - 0x18], 0xf
jmp 0x4d6645
cmp dword [ebp - 0x18], 1
jle 0x4d6645
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 0x4d66a8
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 0x4d66c1
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