Function at 0x100c8350
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x101ba518]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101c9ba0], eax
je 0x100c8384
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret
cmp dword [0x101c9ba8], 0
je 0x100c83a5
call fcn.100c8270
mov eax, dword [0x101c9ba8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [0x101c9b9c]
mov dword [ebp - 0x2d4], 0
push edi
test esi, esi
je 0x100c8439
lea esp, [esp]
cmp dword [esi + 4], 0
je 0x100c83e2
mov ecx, dword [esi + 0x10]
movzx eax, byte [ecx + 0x36]
push eax
lea eax, [ecx + 0x20]
push eax
push dword [esi + 0xc]
call fcn.10118c80
mov eax, dword [esi + 0xc]
add esp, 0xc
jmp 0x100c842e
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x5c], 0
lea ecx, [eax + 0x5c]
jne 0x100c83f1
lea ecx, [eax + 0x44]
mov edx, dword [esi + 0xc]
xor ebx, ebx
mov ecx, dword [ecx]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
mov dword [edx + 1], ecx
add edx, 5
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov eax, dword [eax + 0x40]
mov edi, eax
sub edi, edx
cmp edx, eax
cmova edi, ebx
test edi, edi
je 0x100c842b
jmp 0x100c8420
inc ecx
mov byte [edx], 0xcc
lea edx, [edx + 1]
cmp ecx, edi
jb 0x100c8420
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x100c83c0
mov ebx, dword [0x101c9b94]
test ebx, ebx
je 0x100c853e
jmp 0x100c8450
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100c8534
mov esi, dword [0x101c9b9c]
test esi, esi
je 0x100c8534
mov edx, dword [ebp - 0x218]
cmp dword [esi + 4], 0
je 0x100c84d0
mov edi, dword [esi + 0x10]
cmp edx, edi
jb 0x100c852a
lea eax, [edi + 4]
cmp edx, eax
jae 0x100c852a
xor eax, eax
sub dl, byte [esi + 0x10]
mov cl, byte [edi + eax + 0x38]
shr cl, 3
cmp cl, dl
je 0x100c84c2
inc eax
cmp eax, 8
jb 0x100c84a7
xor al, al
movzx eax, al
add eax, dword [esi + 0xc]
jmp 0x100c850e
mov al, byte [eax + edi + 0x38]
and al, 7
movzx eax, al
add eax, dword [esi + 0xc]
jmp 0x100c850e
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jb 0x100c852a
mov edi, dword [esi + 0x10]
movzx eax, byte [edi + 0x36]
add eax, ecx
cmp edx, eax
jae 0x100c852a
xor ecx, ecx
sub dl, byte [esi + 0xc]
lea esp, [esp]
mov al, byte [edi + ecx + 0x38]
and al, 7
cmp al, dl
je 0x100c8504
inc ecx
cmp ecx, 8
jb 0x100c84f0
xor eax, eax
jmp 0x100c850c
movzx eax, byte [ecx + edi + 0x38]
shr eax, 3
add eax, edi
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edx, dword [ebp - 0x218]
mov esi, dword [esi]
test esi, esi
jne 0x100c8486
mov ebx, dword [ebx]
test ebx, ebx
jne 0x100c8450
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x101c9b9c]
mov ebx, eax
mov dword [ebp - 0x2d8], ebx
test edi, edi
je 0x100c85e0
lea ebx, [ebx]
lea eax, [ebp - 0x2dc]
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 0x100c85cf
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x100c85c9
push 0x60
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.1011da50
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x10], 0
mov dword [ebp - 0x2d4], 1
mov ebx, dword [ebp - 0x2d8]
mov esi, dword [edi]
push edi
call fcn.10115284
add esp, 4
mov edi, esi
test esi, esi
jne 0x100c8560
cmp dword [ebp - 0x2d4], 0
mov dword [0x101c9b9c], 0
je 0x100c8601
cmp dword [0x101c9b8c], 0
jne 0x100c8601
call fcn.100c8170
call fcn.100c7e60
mov edi, dword [0x101c9b94]
test edi, edi
je 0x100c862c
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call ebx
mov esi, dword [edi]
push edi
call fcn.10115284
add esp, 4
mov edi, esi
test esi, esi
jne 0x100c8616
mov ecx, dword [ebp - 4]
mov eax, dword [0x101c9ba8]
xor ecx, ebp
pop edi
pop esi
mov dword [0x101c9b94], 0
mov dword [0x101c9ba0], 0
pop ebx
call fcn.10115289
mov esp, ebp
pop ebp
ret