Function at 0x1000c465
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x1001d054]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001dd98], eax
je 0x1000c490
mov eax, 0x10dd
jmp 0x1000c69a
push ebx
xor ebx, ebx
cmp dword [0x1001dd9c], ebx
je 0x1000c4a5
call fcn.1000c3c2
jmp 0x1000c694
push esi
mov esi, dword [0x1001dda8]
push edi
jmp 0x1000c53c
cmp dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
je 0x1000c513
xor edi, edi
cmp byte [eax + 0x17], bl
jbe 0x1000c4f1
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x2d4]
push ecx
add edx, edi
mov ecx, eax
mov dword [ebp - 0x2d4], ebx
call fcn.1000c8b1
cmp dword [ebp - 0x2d4], ebx
jne 0x1000c4f1
mov ecx, dword [esi + 0x10]
mov edi, eax
sub edi, ecx
movzx ecx, byte [ecx + 0x17]
cmp edi, ecx
jl 0x1000c4c1
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
cmp edi, eax
je 0x1000c50e
mov eax, dword [esi + 8]
mov dword [0x1001dd9c], 0xd
mov dword [0x1001dda0], eax
mov ecx, dword [esi + 0xc]
jmp 0x1000c535
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 0xc]
lea edx, [eax + 5]
mov byte [eax], 0xe9
inc eax
sub ecx, edx
mov dword [eax], ecx
mov edx, dword [esi + 0x10]
lea ecx, [eax + 4]
mov eax, dword [edx + 0x18]
call fcn.1000c003
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov dword [eax], ecx
mov esi, dword [esi]
cmp esi, ebx
jne 0x1000c4b2
mov edi, dword [0x1001dda4]
cmp edi, ebx
je 0x1000c5ee
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
lea eax, [ebp - 0x2d0]
push eax
push dword [edi + 4]
mov dword [ebp - 0x2d0], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000c5e2
mov esi, dword [0x1001dda8]
jmp 0x1000c5de
cmp dword [esi + 4], 0
je 0x1000c5a5
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x218], eax
jb 0x1000c5dc
lea ecx, [eax + 4]
cmp dword [ebp - 0x218], ecx
jae 0x1000c5dc
sub dword [ebp - 0x218], eax
mov eax, dword [esi + 0xc]
jmp 0x1000c5ca
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x218], eax
jb 0x1000c5dc
mov ecx, dword [esi + 0x10]
movzx ecx, byte [ecx + 0x17]
add ecx, eax
cmp dword [ebp - 0x218], ecx
jae 0x1000c5dc
sub dword [ebp - 0x218], eax
mov eax, dword [esi + 0x10]
add dword [ebp - 0x218], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [edi + 4]
call ebx
mov esi, dword [esi]
test esi, esi
jne 0x1000c57e
mov edi, dword [edi]
test edi, edi
jne 0x1000c558
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x1001dda8]
cmp esi, ebx
mov dword [ebp - 0x2d4], eax
je 0x1000c659
lea eax, [ebp - 0x2d8]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [esi + 4], ebx
je 0x1000c64a
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x1000c64a
call fcn.1000c288
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1000c604
mov dword [0x1001dda8], ebx
call fcn.1000c070
mov esi, dword [0x1001dda4]
cmp esi, ebx
je 0x1000c686
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1000c66e
pop edi
mov dword [0x1001dda4], ebx
mov dword [0x1001dd98], ebx
pop esi
mov eax, dword [0x1001dd9c]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011f9a
leave
ret