Function at 0x1006e9f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x10097030]
xor eax, ebp
mov dword [ebp - 0x20], eax
cmp dword [ebp + 8], 0
je 0x1006ea14
mov eax, dword [ebp + 8]
mov ecx, dword [0x100a92d4]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100a92cc], eax
je 0x1006ea2c
mov eax, 0x10dd
jmp 0x1006edd1
cmp dword [0x100a92d0], 0
je 0x1006ea44
call fcn.1006e870
mov eax, dword [0x100a92d0]
jmp 0x1006edd1
mov edx, dword [0x100a92dc]
mov dword [ebp - 0xc], edx
jmp 0x1006ea57
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x1006eb42
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x1006eafa
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
movzx ecx, byte [eax + 0x17]
cmp dword [ebp - 0x14], ecx
jge 0x1006eac6
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.1006deb0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 0
je 0x1006eab8
jmp 0x1006eac6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
jmp 0x1006ea7e
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
movzx ecx, byte [eax + 0x17]
cmp dword [ebp - 0x14], ecx
je 0x1006eaea
mov dword [0x100a92d0], 0xd
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov dword [0x100a92d4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov dword [edx], ecx
jmp 0x1006eb3d
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
call fcn.10006770
add esp, 8
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.100067b0
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
mov dword [eax], edx
jmp 0x1006ea4f
mov eax, dword [0x100a92d8]
mov dword [ebp - 8], eax
jmp 0x1006eb54
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x1006ec94
mov dword [ebp - 0x2f0], 0x10001
lea eax, [ebp - 0x2f0]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1006ec8f
mov eax, dword [0x100a92dc]
mov dword [ebp - 0x2f4], eax
jmp 0x1006eb9f
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ecx]
mov dword [ebp - 0x2f4], edx
cmp dword [ebp - 0x2f4], 0
je 0x1006ec8f
mov eax, dword [ebp - 0x2f4]
cmp dword [eax + 4], 0
je 0x1006ec1d
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x238]
cmp edx, dword [ecx + 0x10]
jb 0x1006ec1b
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [eax + 0x10]
add ecx, 4
cmp dword [ebp - 0x238], ecx
jae 0x1006ec1b
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x238]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x238]
add edx, dword [ecx + 0xc]
mov dword [ebp - 0x238], edx
lea eax, [ebp - 0x2f0]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x1006ec8a
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x238]
cmp ecx, dword [eax + 0xc]
jb 0x1006ec8a
mov edx, dword [ebp - 0x2f4]
mov eax, dword [edx + 0x10]
movzx ecx, byte [eax + 0x17]
mov edx, dword [ebp - 0x2f4]
add ecx, dword [edx + 0xc]
cmp dword [ebp - 0x238], ecx
jae 0x1006ec8a
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x238]
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x238]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x2f0]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x1006eb91
jmp 0x1006eb4c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 4], eax
mov ecx, dword [0x100a92dc]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x1006ed4e
lea edx, [ebp - 0x2fc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
movzx ecx, byte [eax + 0x17]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x17]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
je 0x1006ed1d
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x10], 0
je 0x1006ed1d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.1006e340
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x2f8], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x304], edx
mov eax, dword [ebp - 0x304]
push eax
call fcn.10056b9d
add esp, 4
mov ecx, dword [ebp - 0x2f8]
mov dword [ebp - 0xc], ecx
jmp 0x1006eca6
mov dword [0x100a92dc], 0
call fcn.1006e6d0
mov edx, dword [0x100a92d8]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x1006eda7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x308], ecx
mov edx, dword [ebp - 0x308]
push edx
call fcn.10056b9d
add esp, 4
mov eax, dword [ebp - 0x300]
mov dword [ebp - 8], eax
jmp 0x1006ed66
mov dword [0x100a92d8], 0
mov dword [0x100a92cc], 0
cmp dword [ebp + 8], 0
je 0x1006edcc
mov ecx, dword [ebp + 8]
mov edx, dword [0x100a92d4]
mov dword [ecx], edx
mov eax, dword [0x100a92d0]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1005634e
mov esp, ebp
pop ebp
ret 4