Function at 0x1006d650
Capabilities:
Resume thread

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x100e13e0]
xor eax, esp
mov dword [esp + 0x2d8], eax
mov eax, dword [esp + 0x2e0]
test eax, eax
mov dword [esp + 4], eax
je 0x1006d67b
mov ecx, dword [0x100fc280]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100fc278], eax
je 0x1006d6a5
mov eax, 0x10dd
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.1006f3c1
add esp, 0x2dc
ret 4
cmp dword [0x100fc27c], 0
je 0x1006d6b8
call fcn.1006d540
jmp 0x1006d8e9
push ebx
push ebp
push esi
mov esi, dword [0x100fc288]
test esi, esi
push edi
mov dword [esp + 0x10], 0
je 0x1006d737
mov edi, edi
cmp dword [esi + 4], 0
mov eax, dword [esi + 0x10]
je 0x1006d6f8
movzx edx, byte [eax + 0x36]
push edx
add eax, 0x20
push eax
mov eax, dword [esi + 0xc]
push eax
call fcn.100720c0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
add esp, 0xc
mov dword [ecx], edx
jmp 0x1006d731
mov ecx, dword [eax + 0x44]
mov eax, dword [esi + 0xc]
mov byte [eax], 0xe9
lea edx, [eax + 5]
sub ecx, edx
add eax, 1
mov dword [eax], ecx
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x40]
add eax, 4
cmp eax, ecx
jae 0x1006d729
sub ecx, eax
push ecx
push 0xcc
push eax
call fcn.10072040
add esp, 0xc
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [edx], eax
mov esi, dword [esi]
test esi, esi
jne 0x1006d6d0
mov ebx, dword [0x100fc284]
test ebx, ebx
je 0x1006d7ff
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x1006d750
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1006d7f5
mov edi, dword [0x100fc288]
test edi, edi
je 0x1006d7f5
mov eax, dword [esp + 0xd4]
cmp dword [edi + 4], 0
je 0x1006d7b6
mov esi, dword [edi + 0x10]
cmp eax, esi
jb 0x1006d7ef
lea ecx, [esi + 4]
cmp eax, ecx
jae 0x1006d7ef
mov cl, al
sub cl, byte [edi + 0x10]
call fcn.1006d600
mov ecx, dword [ebx + 4]
movzx edx, al
add edx, dword [edi + 0xc]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0xd8], edx
push ecx
jmp 0x1006d7e6
mov edx, dword [edi + 0xc]
cmp eax, edx
jb 0x1006d7ef
mov ecx, dword [edi + 0x10]
movzx esi, byte [ecx + 0x36]
add esi, edx
cmp eax, esi
jae 0x1006d7ef
sub al, dl
movzx esi, al
call fcn.1006d620
add eax, ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0xd4], eax
mov eax, dword [ebx + 4]
push edx
push eax
call ebp
mov eax, dword [esp + 0xd4]
mov edi, dword [edi]
test edi, edi
jne 0x1006d780
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1006d750
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x100fc288]
test esi, esi
mov ebx, eax
je 0x1006d87c
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1006d820
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x18]
push ecx
movzx ecx, byte [eax + 0x36]
push edx
mov edx, dword [esi + 0xc]
push ecx
push edx
call ebp
mov eax, dword [esi + 0x10]
movzx ecx, byte [eax + 0x36]
mov edx, dword [esi + 0xc]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [esi + 4], 0
je 0x1006d86b
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1006d86b
call fcn.1006d400
mov dword [esi + 0x10], 0
mov dword [esp + 0x10], 1
mov edi, dword [esi]
push esi
call fcn.1006f3d0
add esp, 4
test edi, edi
mov esi, edi
jne 0x1006d820
cmp dword [esp + 0x10], 0
mov dword [0x100fc288], 0
je 0x1006d89b
cmp dword [0x100fc274], 0
jne 0x1006d89b
call fcn.1006d480
call fcn.1006d080
mov esi, dword [0x100fc284]
test esi, esi
je 0x1006d8c7
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
push eax
call ebx
mov edi, dword [esi]
push esi
call fcn.1006f3d0
add esp, 4
test edi, edi
mov esi, edi
jne 0x1006d8b0
mov eax, dword [esp + 0x14]
pop edi
xor ecx, ecx
cmp eax, ecx
pop esi
pop ebp
mov dword [0x100fc284], ecx
mov dword [0x100fc278], ecx
pop ebx
je 0x1006d8e9
mov ecx, dword [0x100fc280]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2d8]
mov eax, dword [0x100fc27c]
xor ecx, esp
call fcn.1006f3c1
add esp, 0x2dc
ret 4