Function at 0x100e378e
Capabilities:
Hook routines via microsoft detours
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x1013c2b8]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1013dde8], eax
je 0x100e37bb
mov eax, 0x10dd
jmp 0x100e3a43
cmp dword [0x1013dde0], 0
je 0x100e37ce
call fcn.100e36dd
jmp 0x100e3a3e
and dword [ebp - 0x2d4], 0
push ebx
push esi
mov esi, dword [0x1013ddc8]
push edi
jmp 0x100e3832
cmp dword [esi + 4], 0
mov ecx, dword [esi + 0x10]
je 0x100e3802
movzx eax, byte [ecx + 0x36]
push eax
lea eax, [ecx + 0x20]
push eax
push dword [esi + 0xc]
call fcn.10063a50
mov eax, dword [esi + 0xc]
add esp, 0xc
jmp 0x100e382b
mov edx, dword [ecx + 0x5c]
test edx, edx
jne 0x100e380c
mov edx, dword [ecx + 0x44]
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov dword [ecx + 1], edx
add ecx, 5
mov edx, dword [esi + 0x10]
mov edx, dword [edx + 0x40]
call fcn.100e2f88
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x100e37e0
mov edi, dword [0x1013ddd8]
jmp 0x100e3916
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 0x100e3914
mov esi, dword [0x1013ddc8]
test esi, esi
je 0x100e3914
mov ecx, dword [ebp - 0x218]
cmp dword [esi + 4], 0
je 0x100e38b8
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x100e390a
lea eax, [edx + 4]
cmp ecx, eax
jae 0x100e390a
xor ebx, ebx
sub cl, dl
mov dl, byte [edx + ebx + 0x38]
mov al, dl
shr al, 3
cmp al, cl
je 0x100e38ad
mov edx, dword [esi + 0x10]
inc ebx
cmp ebx, 8
jb 0x100e3893
xor dl, dl
jmp 0x100e38b0
and dl, 7
movzx eax, dl
add eax, dword [esi + 0xc]
jmp 0x100e38ee
cmp ecx, dword [esi + 0xc]
jb 0x100e390a
mov ebx, dword [esi + 0x10]
movzx eax, byte [ebx + 0x36]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x100e390a
xor edx, edx
sub cl, byte [esi + 0xc]
mov ah, byte [ebx + edx + 0x38]
mov al, ah
and al, 7
cmp al, cl
je 0x100e38e6
inc edx
cmp edx, 8
jb 0x100e38d0
xor eax, eax
jmp 0x100e38ec
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 0x100e3877
mov edi, dword [edi]
test edi, edi
jne 0x100e3841
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x1013ddc8]
mov ebx, eax
test edi, edi
je 0x100e398f
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 0x100e397d
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x100e397d
call fcn.100e2f5b
and dword [edi + 0x10], 0
mov dword [ebp - 0x2d4], 1
mov esi, dword [edi]
push 0x18
push edi
call fcn.10061ce6
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x100e3930
xor ebx, ebx
mov dword [0x1013ddc8], ebx
cmp dword [ebp - 0x2d4], ebx
je 0x100e3a05
cmp dword [0x1013dddc], ebx
jne 0x100e3a05
mov ecx, dword [0x1013ddd0]
mov esi, 0x1013ddd0
jmp 0x100e3a01
cmp dword [ecx], 0x52727464
jne 0x100e39fc
lea edi, [ecx + 0x10000]
mov edx, ebx
lea eax, [ecx + 0xa0]
cmp dword [eax], ebx
je 0x100e39d6
cmp dword [eax], ecx
jb 0x100e39fc
cmp dword [eax], edi
jae 0x100e39fc
inc edx
add eax, 0x60
cmp edx, 0x2a9
jb 0x100e39ca
mov eax, dword [ecx + 4]
push 0x8000
push ebx
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x1013dde4], ebx
jmp 0x100e39ff
lea esi, [ecx + 4]
mov ecx, dword [esi]
test ecx, ecx
jne 0x100e39b4
call fcn.100e3219
mov edi, dword [0x1013ddd8]
test edi, edi
je 0x100e3a2f
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.10061ce6
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x100e3a14
pop edi
pop esi
mov dword [0x1013ddd8], ebx
mov dword [0x1013dde8], ebx
pop ebx
mov eax, dword [0x1013dde0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006190b
leave
ret