Function at 0x1000c945
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x10016014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2dc], ebx
test ebx, ebx
je 0x1000c96d
mov eax, dword [0x10016328]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10016320], eax
je 0x1000c985
mov eax, 0x10dd
jmp 0x1000cb92
cmp dword [0x10016324], 0
je 0x1000c998
call fcn.1000c842
jmp 0x1000cb8d
and dword [ebp - 0x2d8], 0
push esi
mov esi, dword [0x10016330]
push edi
jmp 0x1000c9fa
cmp dword [esi + 4], 0
je 0x1000c9cb
mov ecx, dword [esi + 0x10]
movzx eax, byte [ecx + 0x36]
push eax
lea eax, [ecx + 0x20]
push eax
push dword [esi + 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0xc]
add esp, 0xc
jmp 0x1000c9f3
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov ecx, dword [eax + 0x44]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
mov dword [edx + 1], ecx
mov eax, dword [esi + 0x10]
push dword [eax + 0x40]
lea eax, [edx + 5]
push eax
call fcn.1000c2b3
mov eax, dword [esi + 0x10]
pop ecx
pop ecx
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x1000c9a9
mov edi, dword [0x1001632c]
jmp 0x1000caa8
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000caa6
mov esi, dword [0x10016330]
test esi, esi
je 0x1000caa6
mov ecx, dword [ebp - 0x218]
cmp dword [esi + 4], 0
je 0x1000ca5f
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x1000caa0
lea eax, [edx + 4]
cmp ecx, eax
jae 0x1000caa0
sub cl, dl
movzx eax, cl
push eax
push edx
call fcn.1000bf04
movzx eax, al
add eax, dword [esi + 0xc]
jmp 0x1000ca82
cmp ecx, dword [esi + 0xc]
jb 0x1000caa0
mov edx, dword [esi + 0x10]
movzx eax, byte [edx + 0x36]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x1000caa0
sub cl, byte [esi + 0xc]
movzx eax, cl
push eax
push edx
call fcn.1000bedb
add eax, dword [esi + 0x10]
pop ecx
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x2d0]
pop ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x218]
mov esi, dword [esi]
test esi, esi
jne 0x1000ca37
mov edi, dword [edi]
test edi, edi
jne 0x1000ca09
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x10016330]
mov dword [ebp - 0x2d4], eax
test edi, edi
je 0x1000cb2d
mov ebx, eax
lea eax, [ebp - 0x2d4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], 0
je 0x1000cb18
cmp dword [edi + 0x10], 0
je 0x1000cb18
push dword [edi + 0x10]
call fcn.1000c247
and dword [edi + 0x10], 0
pop ecx
mov dword [ebp - 0x2d8], 1
mov esi, dword [edi]
push edi
call fcn.1000d775
mov edi, esi
pop ecx
test esi, esi
jne 0x1000cac8
mov ebx, dword [ebp - 0x2dc]
and dword [0x10016330], 0
cmp dword [ebp - 0x2d8], 0
je 0x1000cb4b
cmp dword [0x1001631c], 0
jne 0x1000cb4b
call fcn.1000c271
call fcn.1000c395
mov edi, dword [0x1001632c]
test edi, edi
je 0x1000cb72
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.1000d775
mov edi, esi
pop ecx
test esi, esi
jne 0x1000cb5a
and dword [0x1001632c], 0
and dword [0x10016320], 0
pop edi
pop esi
test ebx, ebx
je 0x1000cb8d
mov eax, dword [0x10016328]
mov dword [ebx], eax
mov eax, dword [0x10016324]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000d049
mov esp, ebp
pop ebp
ret 4