Function at 0x1000ad60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x102360a8], eax
je 0x1000ad80
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
cmp dword [0x102360a4], 0
je 0x1000ad97
call fcn.1000ac20
mov eax, dword [0x102360a4]
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [0x102360bc]
mov dword [ebp - 4], 0
push edi
test esi, esi
je 0x1000ae17
nop dword [eax + eax]
cmp dword [esi + 4], 0
mov ecx, dword [esi + 0x10]
je 0x1000add2
movzx eax, byte [ecx + 0x36]
push eax
lea eax, [ecx + 0x20]
push eax
push dword [esi + 0xc]
call fcn.101e93c0
mov eax, dword [esi + 0xc]
add esp, 0xc
jmp 0x1000ae0c
mov edx, dword [esi + 0xc]
xor edi, edi
mov ecx, dword [ecx + 0x44]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
mov dword [edx + 1], ecx
add edx, 5
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x40]
sub ecx, edx
cmp edx, dword [eax + 0x40]
cmova ecx, edi
test ecx, ecx
je 0x1000ae09
push ecx
push 0xcc
push edx
call fcn.101e9940
add esp, 0xc
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x1000adb0
mov ebx, dword [0x102360b8]
test ebx, ebx
je 0x1000aefd
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
nop dword [eax + eax]
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 0x10001
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000aef3
mov esi, dword [0x102360bc]
test esi, esi
je 0x1000aef3
mov edx, dword [ebp - 0x21c]
cmp dword [esi + 4], 0
je 0x1000aea1
mov ecx, dword [esi + 0x10]
cmp edx, ecx
jb 0x1000aee9
lea eax, [ecx + 4]
cmp edx, eax
jae 0x1000aee9
sub dl, cl
call fcn.1000ad00
movzx eax, al
add eax, dword [esi + 0xc]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x2d4]
push eax
push dword [ebx + 4]
call edi
mov edx, dword [ebp - 0x21c]
jmp 0x1000aee9
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jb 0x1000aee9
mov edi, dword [esi + 0x10]
movzx eax, byte [edi + 0x36]
add eax, ecx
cmp edx, eax
jae 0x1000aee3
sub dl, cl
mov ecx, edi
movzx edx, dl
call fcn.1000ad30
add eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x2d4]
push eax
push dword [ebx + 4]
call edi
mov edx, dword [ebp - 0x21c]
jmp 0x1000aee9
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov esi, dword [esi]
test esi, esi
jne 0x1000ae66
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1000ae30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x102360bc]
mov ebx, eax
test edi, edi
je 0x1000af6d
nop
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], 0
je 0x1000af5a
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x1000af5a
call fcn.1000aab0
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 1
mov esi, dword [edi]
push 0x18
push edi
call fcn.101e73a4
add esp, 8
mov edi, esi
test esi, esi
jne 0x1000af10
cmp dword [ebp - 4], 0
mov dword [0x102360bc], 0
je 0x1000af8b
cmp dword [0x10235fbc], 0
jne 0x1000af8b
call fcn.1000ab20
call fcn.1000a780
mov edi, dword [0x102360b8]
test edi, edi
je 0x1000afb8
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call ebx
mov esi, dword [edi]
push 8
push edi
call fcn.101e73a4
add esp, 8
mov edi, esi
test esi, esi
jne 0x1000afa0
mov eax, dword [0x102360a4]
pop edi
pop esi
mov dword [0x102360b8], 0
mov dword [0x102360a8], 0
pop ebx
mov esp, ebp
pop ebp
ret