Function at 0x5f438a41
Capabilities:
Create thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x2c], 0
je 0x5f438a6a
push 0x184
push str.thrdcore.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f438a6a
int3
xor ecx, ecx
test ecx, ecx
jne 0x5f438a4d
push 0x1c
push 0
lea edx, [ebp - 0x1c]
push edx
call sub.MSVCRTD.dll_memset
add esp, 0xc
call sym.MFC42D.DLL_Ordinal_1110
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0xc], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0xc], 0
je 0x5f438ac2
cmp dword [ebp - 8], 0
jne 0x5f438afb
push 0x5f4b86bc
push 0x5f4abab0
call sym.MFC42D.DLL_Ordinal_1179
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x5f438ae4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x5f438af4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x5f438c31
mov ecx, dword [ebp - 0x20]
add ecx, 0x30
push ecx
mov edx, dword [ebp + 8]
or edx, 4
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x5f438250
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.MSVCRTD.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x2c], 0
jne 0x5f438b39
xor eax, eax
jmp 0x5f438c31
mov ecx, dword [ebp - 0x20]
call sym.MFC42D.DLL_Ordinal_4402
cmp eax, 0xffffffff
jne 0x5f438b5a
push 0x19e
push str.thrdcore.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f438b5a
int3
xor eax, eax
test eax, eax
jne 0x5f438b39
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5f438b84
push 0x19f
push str.thrdcore.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f438b84
int3
xor edx, edx
test edx, edx
jne 0x5f438b60
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
and ecx, 4
test ecx, ecx
je 0x5f438bca
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x5f438bc4
push 0x1a4
push str.thrdcore.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f438bc4
int3
xor ecx, ecx
test ecx, ecx
jne 0x5f438b9e
cmp dword [ebp - 4], 0
je 0x5f438c22
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5f438bf7
push 0x1a9
push str.thrdcore.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f438bf7
int3
xor ecx, ecx
test ecx, ecx
jne 0x5f438bd0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x5f438c31
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc