Function at 0x100117f0
Capabilities:
Resume thread

Disassembly:
sub esp, 0x2d8
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x2d4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100581b4], eax
je 0x1001182c
mov eax, 0x10dd
mov ecx, dword [esp + 0x2d4]
xor ecx, esp
call fcn.10028736
add esp, 0x2d8
ret
push ebp
xor ebp, ebp
cmp dword [0x100581b8], ebp
je 0x10011841
call fcn.10011710
jmp 0x10011a9c
push ebx
push esi
mov esi, dword [0x100581c4]
push edi
cmp esi, ebp
je 0x100118f9
mov ebx, 0xd
cmp dword [esi + 4], ebp
je 0x100118b5
mov eax, dword [esi + 0x10]
xor edi, edi
cmp byte [eax + 0x17], 0
jbe 0x10011891
mov ecx, dword [esi + 0xc]
add ecx, edi
push ecx
lea edx, [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x14], ebp
call fcn.10011ea0
cmp dword [esp + 0x10], ebp
jne 0x10011891
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
mov edi, eax
sub edi, ecx
cmp edi, edx
jl 0x10011867
mov eax, dword [esi + 0x10]
movzx ecx, byte [eax + 0x17]
cmp edi, ecx
je 0x100118ab
mov edx, dword [esi + 8]
mov dword [0x100581b8], ebx
mov dword [0x100581bc], edx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
jmp 0x100118ef
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [edx + 0x1c]
mov byte [eax], 0xe9
lea edx, [eax + 5]
sub ecx, edx
inc eax
mov dword [eax], ecx
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x18]
add eax, 4
cmp eax, ecx
jae 0x100118e7
sub ecx, eax
push ecx
push 0xcc
push eax
call fcn.10029f00
add esp, 0xc
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [edx], eax
mov esi, dword [esi]
cmp esi, ebp
jne 0x10011857
mov edi, dword [0x100581c0]
cmp edi, ebp
je 0x100119ad
mov ebp, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], 0x10001
call ebp
test eax, eax
je 0x100119a1
mov esi, dword [0x100581c4]
test esi, esi
je 0x100119a1
mov eax, dword [esp + 0xd0]
jmp 0x10011940
cmp dword [esi + 4], 0
je 0x10011962
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x1001199b
lea edx, [ecx + 4]
cmp eax, edx
jae 0x1001199b
sub eax, ecx
mov dword [esp + 0xd0], eax
add eax, dword [esi + 0xc]
jmp 0x10011982
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x1001199b
mov edx, dword [esi + 0x10]
movzx edx, byte [edx + 0x17]
add edx, ecx
cmp eax, edx
jae 0x1001199b
sub eax, ecx
mov dword [esp + 0xd0], eax
add eax, dword [esi + 0x10]
mov ecx, dword [edi + 4]
mov dword [esp + 0xd0], eax
lea eax, [esp + 0x18]
push eax
push ecx
call ebx
mov eax, dword [esp + 0xd0]
mov esi, dword [esi]
test esi, esi
jne 0x10011940
mov edi, dword [edi]
test edi, edi
jne 0x10011913
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x100581c4]
cmp esi, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, eax
je 0x10011a39
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x10]
push edx
movzx edx, byte [ecx + 0x17]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call ebp
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
mov eax, dword [esi + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor ecx, ecx
cmp dword [esi + 4], ecx
je 0x10011a28
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x10011a28
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 edx, eax
mov dword [eax + 0x1c], ecx
and edx, 0xffff0000
mov edi, dword [edx + 8]
mov dword [eax + 0x18], edi
mov dword [edx + 8], eax
mov dword [esi + 0x10], ecx
mov edi, dword [esi]
push esi
call fcn.1001e30d
add esp, 4
mov esi, edi
test edi, edi
jne 0x100119c5
mov esi, dword [0x100581a8]
xor ebx, ebx
mov dword [0x100581c4], ebx
cmp esi, ebx
je 0x10011a66
jmp 0x10011a50
lea ecx, [esp + 0x14]
push ecx
push 0x20
push 0x10000
push esi
call ebp
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x10011a50
mov esi, dword [0x100581c0]
cmp esi, ebx
je 0x10011a8d
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebp
mov edi, dword [esi]
push esi
call fcn.1001e30d
add esp, 4
mov esi, edi
cmp edi, ebx
jne 0x10011a76
pop edi
pop esi
mov dword [0x100581c0], ebx
mov dword [0x100581b4], ebx
pop ebx
mov ecx, dword [esp + 0x2d8]
mov eax, dword [0x100581b8]
pop ebp
xor ecx, esp
call fcn.10028736
add esp, 0x2d8
ret