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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x101e6b6c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x102b716e
mov dword [ebp - 0x2dc], ebx
call fcn.10124b2c
test ebx, ebx
je 0x10002b42
mov eax, dword [0x101e7f60]
mov dword [ebx], eax
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x101e7f58], eax
je 0x10002b65
mov eax, 0x10dd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10124b5e
mov esp, ebp
pop ebp
ret 4
cmp dword [0x101e7f5c], 0
push esi
push edi
je 0x10002c3c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x101e7f58], eax
jne 0x10002f71
mov edi, dword [0x101e7f68]
test edi, edi
je 0x10002bef
nop
lea eax, [ebp - 0x2dc]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [edi + 4], 0
jne 0x10002bdc
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x10002bdc
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.101291d0
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x10], 0
mov esi, dword [edi]
push 0x18
push edi
call fcn.10124b9c
add esp, 8
mov edi, esi
test esi, esi
jne 0x10002b90
mov dword [0x101e7f68], 0
call fcn.100023a0
mov edi, dword [0x101e7f64]
test edi, edi
je 0x10002c23
push dword [edi + 4]
call sub.KERNEL32.dll_ResumeThread
mov esi, dword [edi]
push 8
push edi
call fcn.10124b9c
add esp, 8
mov edi, esi
test esi, esi
jne 0x10002c08
mov dword [0x101e7f64], 0
mov dword [0x101e7f58], 0
jmp 0x10002f71
mov esi, dword [0x101e7f68]
mov dword [ebp - 0x2d8], 0
test esi, esi
je 0x10002cb7
cmp dword [esi + 4], 0
mov ecx, dword [esi + 0x10]
je 0x10002c72
movzx eax, byte [ecx + 0x36]
push eax
lea eax, [ecx + 0x20]
push eax
push dword [esi + 0xc]
call fcn.101294d0
mov eax, dword [esi + 0xc]
add esp, 0xc
jmp 0x10002cac
mov edx, dword [esi + 0xc]
xor edi, edi
mov ecx, dword [ecx + 0x44]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
mov dword [edx + 1], ecx
add edx, 5
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x40]
sub ecx, edx
cmp edx, dword [eax + 0x40]
cmova ecx, edi
test ecx, ecx
je 0x10002ca9
push ecx
push 0xcc
push edx
call fcn.101291d0
add esp, 0xc
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x10002c50
mov edi, dword [0x101e7f64]
mov dword [ebp - 0x2d4], edi
test edi, edi
je 0x10002dca
nop dword [eax + eax]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push dword [edi + 4]
call sub.KERNEL32.dll_GetThreadContext
test eax, eax
je 0x10002dba
mov esi, dword [0x101e7f68]
test esi, esi
je 0x10002dba
mov ebx, dword [ebp - 0x218]
cmp dword [esi + 4], 0
je 0x10002d6d
mov ecx, dword [esi + 0x10]
cmp ebx, ecx
jb 0x10002db0
lea eax, [ecx + 4]
cmp ebx, eax
jae 0x10002db0
xor eax, eax
lea edi, [ecx + 0x38]
mov ch, byte [edi + eax]
mov dl, bl
sub dl, byte [esi + 0x10]
mov cl, ch
shr cl, 3
cmp cl, dl
je 0x10002d41
inc eax
cmp eax, 8
jb 0x10002d26
xor ch, ch
jmp 0x10002d44
and ch, 7
movzx eax, ch
add eax, dword [esi + 0xc]
mov edi, dword [ebp - 0x2d4]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [edi + 4]
call sub.KERNEL32.dll_SetThreadContext
mov ebx, dword [ebp - 0x218]
jmp 0x10002db0
mov ecx, dword [esi + 0xc]
cmp ebx, ecx
jb 0x10002db0
mov edi, dword [esi + 0x10]
movzx eax, byte [edi + 0x36]
add eax, ecx
cmp ebx, eax
jae 0x10002daa
xor edx, edx
mov ah, byte [edx + edi + 0x38]
mov cl, bl
sub cl, byte [esi + 0xc]
mov al, ah
and al, 7
cmp al, cl
je 0x10002da0
inc edx
cmp edx, 8
jb 0x10002d83
xor eax, eax
mov eax, edi
jmp 0x10002d4a
movzx eax, ah
shr eax, 3
add eax, edi
jmp 0x10002d4a
mov edi, dword [ebp - 0x2d4]
mov esi, dword [esi]
test esi, esi
jne 0x10002d05
mov edi, dword [edi]
mov dword [ebp - 0x2d4], edi
test edi, edi
jne 0x10002cd0
call sub.KERNEL32.dll_GetCurrentProcess
mov edi, dword [0x101e7f68]
mov ebx, eax
mov dword [ebp - 0x2d4], ebx
test edi, edi
je 0x10002e65
lea eax, [ebp - 0x2e0]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
push ebx
call sub.KERNEL32.dll_FlushInstructionCache
cmp dword [edi + 4], 0
je 0x10002e52
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x10002e4c
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.101291d0
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x10], 0
mov dword [ebp - 0x2d8], 1
mov ebx, dword [ebp - 0x2d4]
mov esi, dword [edi]
push 0x18
push edi
call fcn.10124b9c
add esp, 8
mov edi, esi
test esi, esi
jne 0x10002de5
cmp dword [ebp - 0x2d8], 0
mov dword [0x101e7f68], 0
je 0x10002eef
cmp dword [0x101e7f54], 0
jne 0x10002eef
mov ecx, dword [0x101e7f48]
mov edi, 0x101e7f48
test ecx, ecx
je 0x10002eef
cmp dword [ecx], 0x52727464
je 0x10002ea5
lea edi, [ecx + 4]
jmp 0x10002ee9
lea ebx, [ecx + 0x10000]
xor edx, edx
lea esi, [ecx + 0x88]
mov eax, dword [esi]
test eax, eax
je 0x10002ec1
cmp eax, ecx
jb 0x10002ea0
cmp eax, ebx
jae 0x10002ea0
inc edx
add esi, 0x48
cmp edx, 0x38d
jb 0x10002eb3
mov eax, dword [ecx + 4]
push 0x8000
push 0
push ecx
mov dword [edi], eax
call sub.KERNEL32.dll_VirtualFree
mov dword [0x101e7f4c], 0
mov ecx, dword [edi]
test ecx, ecx
jne 0x10002e98
call sub.KERNEL32.dll_GetCurrentProcess
mov esi, dword [0x101e7f48]
mov edi, eax
test esi, esi
je 0x10002f27
lea eax, [ebp - 0x2e0]
push eax
push 0x20
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
push 0x10000
push esi
push edi
call sub.KERNEL32.dll_FlushInstructionCache
mov esi, dword [esi + 4]
test esi, esi
jne 0x10002f00
mov edi, dword [0x101e7f64]
test edi, edi
je 0x10002f4c
push dword [edi + 4]
call sub.KERNEL32.dll_ResumeThread
mov esi, dword [edi]
push 8
push edi
call fcn.10124b9c
add esp, 8
mov edi, esi
test esi, esi
jne 0x10002f31
mov ecx, dword [ebp - 0x2dc]
mov dword [0x101e7f64], 0
mov dword [0x101e7f58], 0
test ecx, ecx
je 0x10002f71
mov eax, dword [0x101e7f60]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov eax, dword [0x101e7f5c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10124b5e
mov esp, ebp
pop ebp
ret 4