Function at 0x100899c0
Capabilities:
Resume thread

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x10132f1c]
xor eax, esp
mov dword [esp + 0x2d8], eax
mov eax, dword [esp + 0x2e0]
push ebp
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0xc], eax
je 0x100899f0
mov ecx, dword [0x1024ac94]
mov dword [eax], ecx
mov bh, bh
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1024ac8c], eax
je 0x10089a1b
mov eax, 0x10dd
pop ebp
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.100aa646
add esp, 0x2dc
ret 4
cmp dword [0x1024ac90], ebp
je 0x10089a30
nop
call fcn.100898c0
mov edi, edi
jmp 0x10089d39
push ebx
push esi
push edi
push eax
pop eax
mov eax, eax
mov al, al
mov esi, dword [0x1024ac9c]
cmp esi, ebp
je 0x10089b26
mov ebx, 0xd
lea esp, [esp]
cmp dword [esi + 4], ebp
je 0x10089acd
mov eax, dword [esi + 0x10]
mov edi, edi
mov edx, dword [esi + 0x10]
mov edi, dword [edx + 0x20]
mov esi, esi
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
cmp edi, edx
jge 0x10089aa2
lea ecx, [ecx]
mov dword [esp + 0x10], ebp
mov cl, cl
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
add edx, edi
push edx
call fcn.1008a580
mov dl, dl
cmp dword [esp + 0x10], ebp
jne 0x10089aa2
mov edi, eax
sub edi, dword [esi + 0x10]
mov edi, edi
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
cmp edi, edx
jl 0x10089a70
mov eax, dword [esi + 0x10]
movzx ecx, byte [eax + 0x17]
cmp edi, ecx
je 0x10089ac1
mov dword [0x1024ac90], ebx
nop
mov edx, dword [esi + 8]
mov dword [0x1024ac94], edx
mov esi, esi
mov ah, ah
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
mov al, al
jmp 0x10089b1c
mov edi, edi
mov ebx, ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
add eax, dword [esi + 0xc]
lea edx, [eax + 5]
push edx
pop edx
mov byte [eax], 0xe9
add eax, 1
sub ecx, edx
mov dword [eax], ecx
mov edx, edx
mov cl, cl
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x18]
add eax, 4
cmp eax, ecx
jae 0x10089b0c
lea ecx, [ecx]
mov byte [eax], 0xcc
add eax, 1
mov ah, ah
cmp eax, ecx
jb 0x10089b00
push ebx
pop ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
xchg ebx, eax
xchg ebx, eax
mov eax, eax
push ebx
pop ebx
mov esi, dword [esi]
cmp esi, ebp
jne 0x10089a50
mov edi, dword [0x1024ac98]
cmp edi, ebp
je 0x10089bfe
mov ebp, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov dh, dh
mov dword [esp + 0x1c], 0x10001
mov esi, esi
mov eax, dword [edi + 4]
lea edx, [esp + 0x1c]
push edx
push eax
call ebp
test eax, eax
je 0x10089bf2
mov esi, dword [0x1024ac9c]
test esi, esi
je 0x10089bf2
mov eax, dword [esp + 0xd4]
cmp dword [esi + 4], 0
je 0x10089bad
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x10089bec
lea edx, [ecx + 4]
cmp eax, edx
jae 0x10089bec
sub eax, ecx
mov dword [esp + 0xd4], eax
push ecx
pop ecx
mov eax, dword [esi + 0xc]
add dword [esp + 0xd4], eax
mov eax, eax
mov edx, dword [edi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
call ebx
nop
jmp 0x10089be5
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x10089bec
mov edx, dword [esi + 0x10]
movzx edx, byte [edx + 0x17]
add edx, ecx
cmp eax, edx
jae 0x10089bec
sub eax, ecx
mov dword [esp + 0xd4], eax
mov edx, edx
mov eax, dword [esi + 0x10]
add dword [esp + 0xd4], eax
xchg ebx, eax
xchg ebx, eax
mov edx, dword [edi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
call ebx
mov bl, bl
mov eax, dword [esp + 0xd4]
mov esi, dword [esi]
test esi, esi
jne 0x10089b74
mov edi, dword [edi]
test edi, edi
jne 0x10089b40
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
nop
mov esi, dword [0x1024ac9c]
cmp esi, ebp
je 0x10089cb5
mov ebp, dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
jmp 0x10089c20
mov dh, dh
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.100607c0
push eax
pop eax
mov edx, dword [esi + 0x10]
movzx eax, byte [edx + 0x17]
mov ecx, dword [esi + 0xc]
push eax
push ecx
push ebx
call ebp
mov ecx, ecx
xor ecx, ecx
cmp dword [esi + 4], ecx
je 0x10089c99
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x10089c99
mov edx, eax
and edx, 0xffff0000
mov edi, edi
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov ch, ch
mov edi, dword [edx + 8]
mov dword [eax + 0x18], edi
push eax
pop eax
mov dword [edx + 8], eax
push ebx
pop ebx
mov dl, dl
mov dword [esi + 0x10], ecx
push edx
pop edx
mov ebx, ebx
mov edi, dword [esi]
mov edx, edx
push esi
call fcn.1009c380
add esp, 4
push eax
pop eax
mov esi, edi
nop
test edi, edi
jne 0x10089c20
xor ebp, ebp
mov dword [0x1024ac9c], ebp
mov ah, ah
mov esi, dword [0x1024ac80]
cmp esi, ebp
je 0x10089ce4
push eax
pop eax
lea edx, [esp + 0x14]
push edx
push 0x20
push 0x10000
push esi
call fcn.100607c0
mov esi, esi
mov esi, dword [esi + 4]
cmp esi, ebp
jne 0x10089cc7
mov ebx, ebx
mov esi, dword [0x1024ac98]
cmp esi, ebp
je 0x10089d14
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
push eax
call ebx
mov ebx, ebx
mov edi, dword [esi]
nop
push esi
call fcn.1009c380
add esp, 4
mov bl, bl
mov esi, edi
mov ecx, ecx
cmp edi, ebp
jne 0x10089cf6
mov dword [0x1024ac98], ebp
mov ah, ah
mov dword [0x1024ac8c], ebp
mov ch, ch
mov eax, dword [esp + 0x18]
cmp eax, ebp
pop edi
pop esi
pop ebx
je 0x10089d39
mov ecx, dword [0x1024ac94]
mov dword [eax], ecx
mov cl, cl
mov ecx, dword [esp + 0x2dc]
mov eax, dword [0x1024ac90]
pop ebp
xor ecx, esp
call fcn.100aa646
add esp, 0x2dc
ret 4