Function at 0x10014251
Capabilities:
Resume thread

Disassembly:
cmp byte [ecx], 0
je 0x10014265
cmp byte [ecx + 1], 0
jne 0x10014aea
jmp fcn.10014a47
ret
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x1005d018]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp dword [0x1006001c], eax
je 0x10014b15
mov eax, 0x10dd
jmp 0x10014d34
cmp dword [0x10060018], 0
je 0x10014b28
call fcn.100220f3
jmp 0x10014d2f
push ebx
push esi
push edi
mov edi, dword [0x10060000]
mov byte [ebp - 0x2d1], 0
jmp 0x10014b85
cmp dword [edi + 4], 0
mov ecx, dword [edi + 0x10]
je 0x10014b5c
movzx eax, byte [ecx + 0x36]
push eax
lea eax, [ecx + 0x20]
push eax
push dword [edi + 0xc]
call fcn.1001885b
mov eax, dword [edi + 0xc]
add esp, 0xc
jmp 0x10014b7e
mov esi, dword [edi + 0xc]
mov ecx, dword [ecx + 0x44]
lea eax, [esi + 5]
mov byte [esi], 0xe9
sub ecx, eax
mov dword [esi + 1], ecx
lea ecx, [esi + 5]
mov edx, dword [edi + 0x10]
mov edx, dword [edx + 0x40]
call fcn.100145b3
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 8]
mov dword [ecx], eax
mov edi, dword [edi]
test edi, edi
jne 0x10014b3a
mov edi, dword [0x10060008]
jmp 0x10014c69
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetThreadContext]
test eax, eax
je 0x10014c67
mov esi, dword [0x10060000]
test esi, esi
je 0x10014c67
mov ecx, dword [ebp - 0x218]
cmp dword [esi + 4], 0
je 0x10014c0b
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x10014c5d
lea eax, [edx + 4]
cmp ecx, eax
jae 0x10014c5d
xor ebx, ebx
sub cl, dl
mov dl, byte [edx + ebx + 0x38]
mov al, dl
shr al, 3
cmp al, cl
je 0x10014c00
mov edx, dword [esi + 0x10]
inc ebx
cmp ebx, 8
jb 0x10014be6
xor dl, dl
jmp 0x10014c03
and dl, 7
movzx eax, dl
add eax, dword [esi + 0xc]
jmp 0x10014c41
cmp ecx, dword [esi + 0xc]
jb 0x10014c5d
mov ebx, dword [esi + 0x10]
movzx eax, byte [ebx + 0x36]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x10014c5d
xor edx, edx
sub cl, byte [esi + 0xc]
mov ah, byte [ebx + edx + 0x38]
mov al, ah
and al, 7
cmp al, cl
je 0x10014c39
inc edx
cmp edx, 8
jb 0x10014c23
xor eax, eax
jmp 0x10014c3f
movzx eax, ah
shr eax, 3
add eax, ebx
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x218]
mov esi, dword [esi]
test esi, esi
jne 0x10014bca
mov edi, dword [edi]
test edi, edi
jne 0x10014b94
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov edi, dword [0x10060000]
mov ebx, eax
test edi, edi
je 0x10014cdc
lea eax, [ebp - 0x2d8]
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 0x10014ccd
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x10014ccd
call fcn.10014907
and dword [edi + 0x10], 0
mov byte [ebp - 0x2d1], 1
mov esi, dword [edi]
push edi
call fcn.100220f3
mov edi, esi
pop ecx
test esi, esi
jne 0x10014c83
xor ebx, ebx
mov dword [0x10060000], ebx
cmp byte [ebp - 0x2d1], bl
je 0x10014cf9
cmp dword [0x10060004], ebx
jne 0x10014cf9
call fcn.1001492c
call fcn.100220f3
mov edi, dword [0x10060008]
test edi, edi
je 0x10014d20
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.100220f3
mov edi, esi
pop ecx
test esi, esi
jne 0x10014d08
pop edi
pop esi
mov dword [0x10060008], ebx
mov dword [0x1006001c], ebx
pop ebx
mov eax, dword [0x10060018]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017075
leave
ret