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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2d4], ebx
test ebx, ebx
je 0x42af2f
mov eax, dword [0x42e620]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x42e618], eax
je 0x42af47
mov eax, 0x10dd
jmp 0x42b1f3
cmp dword [0x42e61c], 0
je 0x42af5a
call fcn.0042add9
jmp 0x42b1ee
and dword [ebp - 0x2d8], 0
push esi
mov esi, dword [0x42e628]
push edi
jmp 0x42afb7
cmp dword [esi + 4], 0
mov ecx, dword [esi + 0x10]
je 0x42af8d
movzx eax, byte [ecx + 0x36]
push eax
lea eax, [ecx + 0x20]
push eax
push dword [esi + 0xc]
call fcn.004129f0
mov eax, dword [esi + 0xc]
add esp, 0xc
jmp 0x42afb0
mov edx, dword [esi + 0xc]
mov ecx, dword [ecx + 0x44]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
mov dword [edx + 1], ecx
mov eax, dword [esi + 0x10]
push dword [eax + 0x40]
lea eax, [edx + 5]
push eax
call fcn.0042a683
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x42af6b
mov edi, dword [0x42e624]
test edi, edi
je 0x42b0b0
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 0x42b0a0
mov esi, dword [0x42e628]
test esi, esi
je 0x42b0a0
mov ecx, dword [ebp - 0x218]
cmp dword [esi + 4], 0
je 0x42b040
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x42b096
lea eax, [edx + 4]
cmp ecx, eax
jae 0x42b096
xor ebx, ebx
sub cl, dl
mov dl, byte [edx + ebx + 0x38]
mov al, dl
shr al, 3
cmp al, cl
je 0x42b035
mov edx, dword [esi + 0x10]
inc ebx
cmp ebx, 8
jb 0x42b01b
xor dl, dl
jmp 0x42b038
and dl, 7
movzx eax, dl
add eax, dword [esi + 0xc]
jmp 0x42b07a
cmp ecx, dword [esi + 0xc]
jb 0x42b096
mov ebx, dword [esi + 0x10]
movzx eax, byte [ebx + 0x36]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x42b096
xor edx, edx
sub cl, byte [esi + 0xc]
mov bl, byte [ebx + edx + 0x38]
mov al, bl
and al, 7
cmp al, cl
je 0x42b071
mov ebx, dword [esi + 0x10]
inc edx
cmp edx, 8
jb 0x42b058
xor eax, eax
jmp 0x42b077
movzx eax, bl
shr eax, 3
add eax, dword [esi + 0x10]
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 0x42afff
mov edi, dword [edi]
test edi, edi
jne 0x42afc9
mov ebx, dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x42e628]
mov dword [ebp - 0x2dc], eax
test edi, edi
je 0x42b12f
mov ebx, eax
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 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 0x42b117
cmp dword [edi + 0x10], 0
je 0x42b117
push dword [edi + 0x10]
call fcn.0042a657
and dword [edi + 0x10], 0
mov dword [ebp - 0x2d8], 1
mov esi, dword [edi]
push 0x18
push edi
call fcn.00411b65
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x42b0c8
mov ebx, dword [ebp - 0x2d4]
and dword [0x42e628], 0
cmp dword [ebp - 0x2d8], 0
je 0x42b1a9
cmp dword [0x42e614], 0
jne 0x42b1a9
mov ecx, dword [0x42e608]
mov esi, 0x42e608
jmp 0x42b1a5
cmp dword [ecx], 0x52727464
jne 0x42b1a0
lea edi, [ecx + 0x10000]
xor edx, edx
lea eax, [ecx + 0x88]
cmp dword [eax], 0
je 0x42b178
cmp dword [eax], ecx
jb 0x42b1a0
cmp dword [eax], edi
jae 0x42b1a0
inc edx
add eax, 0x48
cmp edx, 0x38d
jb 0x42b16b
mov eax, dword [ecx + 4]
push 0x8000
push 0
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [0x42e60c], 0
jmp 0x42b1a3
lea esi, [ecx + 4]
mov ecx, dword [esi]
test ecx, ecx
jne 0x42b155
call fcn.0042a948
mov edi, dword [0x42e624]
test edi, edi
je 0x42b1d3
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.00411b65
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x42b1b8
and dword [0x42e624], 0
and dword [0x42e618], 0
pop edi
pop esi
test ebx, ebx
je 0x42b1ee
mov eax, dword [0x42e620]
mov dword [ebx], eax
mov eax, dword [0x42e61c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004118ce
leave
ret 4