Function at 0x10011e90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x10040068]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2d8], ecx
test ecx, ecx
je 0x10011eb7
mov eax, dword [0x10040da8]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10040d94], eax
je 0x10011eda
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001380a
mov esp, ebp
pop ebp
ret 4
cmp dword [0x10040da4], 0
je 0x10011eed
call fcn.10011d00
jmp 0x10012188
push ebx
push esi
mov esi, dword [0x10040db0]
push edi
test esi, esi
je 0x10011fc1
nop
cmp dword [esi + 4], 0
mov eax, dword [esi + 0x10]
je 0x10011f79
xor edi, edi
cmp byte [eax + 0x17], 0
jbe 0x10011f57
nop dword [eax]
nop word [eax + eax]
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 0
push ecx
push 0
push eax
mov eax, dword [esi + 0xc]
add eax, edi
push eax
call fcn.10012640
cmp dword [ebp - 0x2d4], 0
jne 0x10011f57
mov ecx, dword [esi + 0x10]
mov edi, eax
sub edi, ecx
movzx ecx, byte [ecx + 0x17]
cmp edi, ecx
jl 0x10011f20
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
cmp edi, eax
je 0x10011f74
mov eax, dword [esi + 8]
mov dword [0x10040da4], 0xd
mov dword [0x10040da8], eax
mov eax, dword [esi + 0xc]
jmp 0x10011fb2
mov edx, dword [esi + 0xc]
xor ebx, ebx
mov ecx, dword [eax + 0x1c]
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 + 0x18]
mov edi, eax
sub edi, edx
cmp edx, eax
cmova edi, ebx
test edi, edi
je 0x10011faf
inc ecx
mov byte [edx], 0xcc
lea edx, [edx + 1]
cmp ecx, edi
jb 0x10011fa4
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x10011f00
mov edi, dword [0x10040dac]
test edi, edi
je 0x10012078
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
nop word [eax + eax]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1001206e
mov esi, dword [0x10040db0]
test esi, esi
je 0x1001206e
mov ecx, dword [ebp - 0x218]
nop
cmp dword [esi + 4], 0
je 0x10012031
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x10012068
lea eax, [edx + 4]
cmp ecx, eax
jae 0x10012068
sub ecx, edx
mov dword [ebp - 0x218], ecx
add ecx, dword [esi + 0xc]
jmp 0x10012050
mov edx, dword [esi + 0xc]
cmp ecx, edx
jb 0x10012068
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
add eax, edx
cmp ecx, eax
jae 0x10012068
sub ecx, edx
mov dword [ebp - 0x218], ecx
add ecx, dword [esi + 0x10]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x218], ecx
push eax
push dword [edi + 4]
call ebx
mov ecx, dword [ebp - 0x218]
mov esi, dword [esi]
test esi, esi
jne 0x10012010
mov edi, dword [edi]
test edi, edi
jne 0x10011fe0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x10040db0]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x2d4], esi
test edi, edi
je 0x10012107
lea eax, [ebp - 0x2dc]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call ebx
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], 0
je 0x100120ee
mov edx, dword [edi + 0x10]
test edx, edx
je 0x100120ee
mov ecx, edx
xorps xmm0, xmm0
and ecx, 0xffff0000
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov eax, dword [ecx + 8]
mov dword [edx + 0x18], eax
mov dword [ecx + 8], edx
mov dword [edi + 0x10], 0
mov esi, dword [edi]
push 0x18
push edi
call fcn.100137fc
add esp, 8
mov edi, esi
test esi, esi
mov esi, dword [ebp - 0x2d4]
jne 0x10012096
mov esi, dword [0x10040d98]
mov dword [0x10040db0], 0
test esi, esi
je 0x10012138
nop dword [eax + eax]
lea eax, [ebp - 0x2d4]
push eax
push 0x20
push 0x10000
push esi
call ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x10012120
mov edi, dword [0x10040dac]
test edi, edi
je 0x10012160
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call ebx
mov esi, dword [edi]
push 8
push edi
call fcn.100137fc
add esp, 8
mov edi, esi
test esi, esi
jne 0x10012148
mov ecx, dword [ebp - 0x2d8]
mov dword [0x10040dac], 0
mov dword [0x10040d94], 0
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x10012188
mov eax, dword [0x10040da8]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov eax, dword [0x10040da4]
xor ecx, ebp
call fcn.1001380a
mov esp, ebp
pop ebp
ret 4