Function at 0x1002f940
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x10068cc4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x1002f964
mov eax, dword [ebp + 8]
mov ecx, dword [0x10069a3c]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10069a34], eax
je 0x1002f97c
mov eax, 0x10dd
jmp 0x1002fe1a
cmp dword [0x10069a38], 0
je 0x1002f994
call fcn.1002f7c0
mov eax, dword [0x10069a38]
jmp 0x1002fe1a
mov dword [ebp - 0x2e8], 0
mov edx, dword [0x10069a44]
mov dword [ebp - 0x2d4], edx
jmp 0x1002f9ba
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax]
mov dword [ebp - 0x2d4], ecx
cmp dword [ebp - 0x2d4], 0
je 0x1002fafb
mov edx, dword [ebp - 0x2d4]
cmp dword [edx + 4], 0
je 0x1002fa19
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x36]
push edx
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0x10]
add ecx, 0x20
push ecx
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0xc]
push eax
call fcn.10035110
add esp, 0xc
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0xc]
mov dword [edx], ecx
jmp 0x1002faf6
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x2ec], ecx
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x2dc], eax
mov ecx, dword [ebp - 0x2dc]
add ecx, 5
mov dword [ebp - 0x2f0], ecx
mov edx, dword [ebp - 0x2dc]
mov byte [edx], 0xe9
mov eax, dword [ebp - 0x2dc]
add eax, 1
mov dword [ebp - 0x2dc], eax
mov ecx, dword [ebp - 0x2ec]
sub ecx, dword [ebp - 0x2f0]
mov edx, dword [ebp - 0x2dc]
mov dword [edx], ecx
mov eax, dword [ebp - 0x2dc]
add eax, 4
mov dword [ebp - 0x2dc], eax
mov ecx, dword [ebp - 0x2dc]
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x2f4], ecx
mov edx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2e0], edx
mov eax, dword [ebp - 0x2e0]
cmp eax, dword [ebp - 0x2f4]
jae 0x1002fad6
mov ecx, dword [ebp - 0x2e0]
mov byte [ecx], 0xcc
mov edx, dword [ebp - 0x2e0]
add edx, 1
mov dword [ebp - 0x2e0], edx
jmp 0x1002faae
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2e4], eax
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 8]
mov dword [ecx], edx
jmp 0x1002f9ac
mov edx, dword [0x10069a40]
mov dword [ebp - 0x2d8], edx
jmp 0x1002fb17
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [eax]
mov dword [ebp - 0x2d8], ecx
cmp dword [ebp - 0x2d8], 0
je 0x1002fc78
mov dword [ebp - 0x2d0], 0x10001
lea edx, [ebp - 0x2d0]
push edx
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1002fc73
mov edx, dword [0x10069a44]
mov dword [ebp - 0x2d4], edx
jmp 0x1002fb69
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax]
mov dword [ebp - 0x2d4], ecx
cmp dword [ebp - 0x2d4], 0
je 0x1002fc73
mov edx, dword [ebp - 0x2d4]
cmp dword [edx + 4], 0
je 0x1002fbf4
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [ebp - 0x218]
cmp ecx, dword [eax + 0x10]
jb 0x1002fbf2
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0x10]
add eax, 4
cmp dword [ebp - 0x218], eax
jae 0x1002fbf2
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x218]
sub edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.1002dfa0
add esp, 8
movzx edx, al
mov eax, dword [ebp - 0x2d4]
add edx, dword [eax + 0xc]
mov dword [ebp - 0x218], edx
lea ecx, [ebp - 0x2d0]
push ecx
mov edx, dword [ebp - 0x2d8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x1002fc6e
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x218]
cmp edx, dword [ecx + 0xc]
jb 0x1002fc6e
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x36]
mov eax, dword [ebp - 0x2d4]
add edx, dword [eax + 0xc]
cmp dword [ebp - 0x218], edx
jae 0x1002fc6e
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x218]
sub edx, dword [ecx + 0xc]
movzx eax, dl
push eax
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx + 0x10]
push edx
call fcn.1002df50
add esp, 8
mov ecx, dword [ebp - 0x2d4]
add eax, dword [ecx + 0x10]
mov dword [ebp - 0x218], eax
lea edx, [ebp - 0x2d0]
push edx
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x1002fb5b
jmp 0x1002fb09
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x2f8], eax
mov edx, dword [0x10069a44]
mov dword [ebp - 0x2d4], edx
cmp dword [ebp - 0x2d4], 0
je 0x1002fd6e
lea eax, [ebp - 0x30c]
push eax
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x36]
push edx
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0x10]
movzx ecx, byte [eax + 0x36]
push ecx
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x2f8]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x2d4]
cmp dword [edx + 4], 0
je 0x1002fd32
mov eax, dword [ebp - 0x2d4]
cmp dword [eax + 0x10], 0
je 0x1002fd32
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx + 0x10]
push edx
call fcn.1002e6b0
add esp, 4
mov eax, dword [ebp - 0x2d4]
mov dword [eax + 0x10], 0
mov dword [ebp - 0x2e8], 1
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx]
mov dword [ebp - 0x300], edx
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2fc], eax
push 0x18
mov ecx, dword [ebp - 0x2fc]
push ecx
call fcn.1003331d
add esp, 8
mov edx, dword [ebp - 0x300]
mov dword [ebp - 0x2d4], edx
jmp 0x1002fc90
mov dword [0x10069a44], 0
cmp dword [ebp - 0x2e8], 0
je 0x1002fd8f
cmp dword [0x10069a30], 0
jne 0x1002fd8f
call fcn.1002e6f0
call fcn.1002ef20
mov eax, dword [0x10069a40]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0
je 0x1002fdf1
mov ecx, dword [ebp - 0x2d8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [eax]
mov dword [ebp - 0x308], ecx
mov edx, dword [ebp - 0x2d8]
mov dword [ebp - 0x304], edx
push 8
mov eax, dword [ebp - 0x304]
push eax
call fcn.1003331d
add esp, 8
mov ecx, dword [ebp - 0x308]
mov dword [ebp - 0x2d8], ecx
jmp 0x1002fd9f
mov dword [0x10069a40], 0
mov dword [0x10069a34], 0
cmp dword [ebp + 8], 0
je 0x1002fe15
mov edx, dword [ebp + 8]
mov eax, dword [0x10069a3c]
mov dword [edx], eax
mov eax, dword [0x10069a38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003332b
mov esp, ebp
pop ebp
ret 4