Function at 0x10001b20
Capabilities:
Print debug messages
Resume thread

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x100b221c]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebp
push esi
mov esi, dword [esp + 0x2e8]
push 0x10084368
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebp, ebp
cmp esi, ebp
je 0x10001b59
mov eax, dword [0x100b3c34]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100b3c2c], eax
je 0x10001b71
mov eax, 0x10dd
jmp 0x10001df0
cmp dword [0x100b3c30], ebp
je 0x10001b83
call fcn.10001a40
jmp 0x10001deb
mov esi, dword [0x100b3c3c]
push ebx
push edi
cmp esi, ebp
je 0x10001c3b
mov ebx, 0xd
cmp dword [esi + 4], ebp
je 0x10001bf7
mov eax, dword [esi + 0x10]
xor edi, edi
cmp byte [eax + 0x17], 0
jbe 0x10001bd3
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
add edx, edi
push edx
mov dword [esp + 0x20], ebp
call fcn.10002450
cmp dword [esp + 0x10], ebp
jne 0x10001bd3
mov ecx, dword [esi + 0x10]
mov edi, eax
sub edi, ecx
movzx ecx, byte [ecx + 0x17]
cmp edi, ecx
jl 0x10001ba8
mov edx, dword [esi + 0x10]
movzx eax, byte [edx + 0x17]
cmp edi, eax
je 0x10001bed
mov ecx, dword [esi + 8]
mov dword [0x100b3c30], ebx
mov dword [0x100b3c34], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [edx], eax
jmp 0x10001c31
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x1c]
lea edx, [eax + 5]
mov byte [eax], 0xe9
sub ecx, edx
inc eax
mov dword [eax], ecx
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x18]
add eax, 4
cmp eax, ecx
jae 0x10001c29
sub ecx, eax
push ecx
push 0xcc
push eax
call fcn.100647d0
add esp, 0xc
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov esi, dword [esi]
cmp esi, ebp
jne 0x10001b98
mov edi, dword [0x100b3c38]
cmp edi, ebp
je 0x10001ced
mov ebp, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [edi + 4]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 0x10001
call ebp
test eax, eax
je 0x10001ce1
mov esi, dword [0x100b3c3c]
test esi, esi
je 0x10001ce1
mov eax, dword [esp + 0xd4]
lea ecx, [ecx]
cmp dword [esi + 4], 0
je 0x10001ca2
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x10001cdb
lea edx, [ecx + 4]
cmp eax, edx
jae 0x10001cdb
sub eax, ecx
mov dword [esp + 0xd4], eax
add eax, dword [esi + 0xc]
jmp 0x10001cc2
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x10001cdb
mov edx, dword [esi + 0x10]
movzx edx, byte [edx + 0x17]
add edx, ecx
cmp eax, edx
jae 0x10001cdb
sub eax, ecx
mov dword [esp + 0xd4], eax
add eax, dword [esi + 0x10]
mov ecx, dword [edi + 4]
mov dword [esp + 0xd4], eax
lea eax, [esp + 0x1c]
push eax
push ecx
call ebx
mov eax, dword [esp + 0xd4]
mov esi, dword [esi]
test esi, esi
jne 0x10001c80
mov edi, dword [edi]
test edi, edi
jne 0x10001c55
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x100b3c3c]
cmp esi, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, eax
je 0x10001d79
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 0x10001d68
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x10001d68
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.1001b9e0
add esp, 4
mov esi, edi
test edi, edi
jne 0x10001d05
mov esi, dword [0x100b3c20]
xor ebx, ebx
mov dword [0x100b3c3c], ebx
cmp esi, ebx
je 0x10001da6
jmp 0x10001d90
lea ecx, [esp + 0x18]
push ecx
push 0x20
push 0x10000
push esi
call ebp
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x10001d90
mov esi, dword [0x100b3c38]
cmp esi, ebx
je 0x10001dcd
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.1001b9e0
add esp, 4
mov esi, edi
cmp edi, ebx
jne 0x10001db6
mov eax, dword [esp + 0x14]
pop edi
mov dword [0x100b3c38], ebx
mov dword [0x100b3c2c], ebx
cmp eax, ebx
pop ebx
je 0x10001deb
mov ecx, dword [0x100b3c34]
mov dword [eax], ecx
mov eax, dword [0x100b3c30]
mov ecx, dword [esp + 0x2e0]
pop esi
pop ebp
xor ecx, esp
call fcn.1006302b
add esp, 0x2dc
ret 4