Function at 0x1007f490
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x101114bc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x1007f4b4
mov eax, dword [ebp + 8]
mov ecx, dword [0x101179c8]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101179c0], eax
je 0x1007f4cc
mov eax, 0x10dd
jmp 0x1007f96a
cmp dword [0x101179c4], 0
je 0x1007f4e4
call fcn.1007f310
mov eax, dword [0x101179c4]
jmp 0x1007f96a
mov dword [ebp - 0x2e8], 0
mov edx, dword [0x101179d0]
mov dword [ebp - 0x2d4], edx
jmp 0x1007f50a
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax]
mov dword [ebp - 0x2d4], ecx
cmp dword [ebp - 0x2d4], 0
je 0x1007f64b
mov edx, dword [ebp - 0x2d4]
cmp dword [edx + 4], 0
je 0x1007f569
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.10088120
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 0x1007f646
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 0x1007f626
mov ecx, dword [ebp - 0x2e0]
mov byte [ecx], 0xcc
mov edx, dword [ebp - 0x2e0]
add edx, 1
mov dword [ebp - 0x2e0], edx
jmp 0x1007f5fe
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 0x1007f4fc
mov edx, dword [0x101179cc]
mov dword [ebp - 0x2d8], edx
jmp 0x1007f667
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [eax]
mov dword [ebp - 0x2d8], ecx
cmp dword [ebp - 0x2d8], 0
je 0x1007f7c8
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 0x1007f7c3
mov edx, dword [0x101179d0]
mov dword [ebp - 0x2d4], edx
jmp 0x1007f6b9
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax]
mov dword [ebp - 0x2d4], ecx
cmp dword [ebp - 0x2d4], 0
je 0x1007f7c3
mov edx, dword [ebp - 0x2d4]
cmp dword [edx + 4], 0
je 0x1007f744
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [ebp - 0x218]
cmp ecx, dword [eax + 0x10]
jb 0x1007f742
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0x10]
add eax, 4
cmp dword [ebp - 0x218], eax
jae 0x1007f742
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.1007d9e0
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 0x1007f7be
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x218]
cmp edx, dword [ecx + 0xc]
jb 0x1007f7be
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 0x1007f7be
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.1007d990
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 0x1007f6ab
jmp 0x1007f659
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x2f8], eax
mov edx, dword [0x101179d0]
mov dword [ebp - 0x2d4], edx
cmp dword [ebp - 0x2d4], 0
je 0x1007f8be
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 0x1007f882
mov eax, dword [ebp - 0x2d4]
cmp dword [eax + 0x10], 0
je 0x1007f882
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx + 0x10]
push edx
call fcn.1007e120
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.10085c12
add esp, 8
mov edx, dword [ebp - 0x300]
mov dword [ebp - 0x2d4], edx
jmp 0x1007f7e0
mov dword [0x101179d0], 0
cmp dword [ebp - 0x2e8], 0
je 0x1007f8df
cmp dword [0x101179bc], 0
jne 0x1007f8df
call fcn.1007e160
call fcn.1007e990
mov eax, dword [0x101179cc]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0
je 0x1007f941
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.10085c12
add esp, 8
mov ecx, dword [ebp - 0x308]
mov dword [ebp - 0x2d8], ecx
jmp 0x1007f8ef
mov dword [0x101179cc], 0
mov dword [0x101179c0], 0
cmp dword [ebp + 8], 0
je 0x1007f965
mov edx, dword [ebp + 8]
mov eax, dword [0x101179c8]
mov dword [edx], eax
mov eax, dword [0x101179c4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10085c29
mov esp, ebp
pop ebp
ret 4