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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x454014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2d4], ebx
test ebx, ebx
je 0x448fd4
mov eax, dword [0x455f84]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x455f7c], eax
je 0x448fec
mov eax, 0x10dd
jmp 0x449298
cmp dword [0x455f80], 0
je 0x448fff
call fcn.00448e7e
jmp 0x449293
and dword [ebp - 0x2d8], 0
push esi
mov esi, dword [0x455f8c]
push edi
jmp 0x44905c
cmp dword [esi + 4], 0
mov ecx, dword [esi + 0x10]
je 0x449032
movzx eax, byte [ecx + 0x36]
push eax
lea eax, [ecx + 0x20]
push eax
push dword [esi + 0xc]
call fcn.0042f9b0
mov eax, dword [esi + 0xc]
add esp, 0xc
jmp 0x449055
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.00448728
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x449010
mov edi, dword [0x455f88]
test edi, edi
je 0x449155
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 0x449145
mov esi, dword [0x455f8c]
test esi, esi
je 0x449145
mov ecx, dword [ebp - 0x218]
cmp dword [esi + 4], 0
je 0x4490e5
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x44913b
lea eax, [edx + 4]
cmp ecx, eax
jae 0x44913b
xor ebx, ebx
sub cl, dl
mov dl, byte [edx + ebx + 0x38]
mov al, dl
shr al, 3
cmp al, cl
je 0x4490da
mov edx, dword [esi + 0x10]
inc ebx
cmp ebx, 8
jb 0x4490c0
xor dl, dl
jmp 0x4490dd
and dl, 7
movzx eax, dl
add eax, dword [esi + 0xc]
jmp 0x44911f
cmp ecx, dword [esi + 0xc]
jb 0x44913b
mov ebx, dword [esi + 0x10]
movzx eax, byte [ebx + 0x36]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x44913b
xor edx, edx
sub cl, byte [esi + 0xc]
mov bl, byte [ebx + edx + 0x38]
mov al, bl
and al, 7
cmp al, cl
je 0x449116
mov ebx, dword [esi + 0x10]
inc edx
cmp edx, 8
jb 0x4490fd
xor eax, eax
jmp 0x44911c
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 0x4490a4
mov edi, dword [edi]
test edi, edi
jne 0x44906e
mov ebx, dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x455f8c]
mov dword [ebp - 0x2dc], eax
test edi, edi
je 0x4491d4
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 0x4491bc
cmp dword [edi + 0x10], 0
je 0x4491bc
push dword [edi + 0x10]
call fcn.004486fc
and dword [edi + 0x10], 0
mov dword [ebp - 0x2d8], 1
mov esi, dword [edi]
push 0x18
push edi
call fcn.0042cdae
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x44916d
mov ebx, dword [ebp - 0x2d4]
and dword [0x455f8c], 0
cmp dword [ebp - 0x2d8], 0
je 0x44924e
cmp dword [0x455f78], 0
jne 0x44924e
mov ecx, dword [0x455f6c]
mov esi, 0x455f6c
jmp 0x44924a
cmp dword [ecx], 0x52727464
jne 0x449245
lea edi, [ecx + 0x10000]
xor edx, edx
lea eax, [ecx + 0x88]
cmp dword [eax], 0
je 0x44921d
cmp dword [eax], ecx
jb 0x449245
cmp dword [eax], edi
jae 0x449245
inc edx
add eax, 0x48
cmp edx, 0x38d
jb 0x449210
mov eax, dword [ecx + 4]
push 0x8000
push 0
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [0x455f70], 0
jmp 0x449248
lea esi, [ecx + 4]
mov ecx, dword [esi]
test ecx, ecx
jne 0x4491fa
call fcn.004489ed
mov edi, dword [0x455f88]
test edi, edi
je 0x449278
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.0042cdae
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x44925d
and dword [0x455f88], 0
and dword [0x455f7c], 0
pop edi
pop esi
test ebx, ebx
je 0x449293
mov eax, dword [0x455f84]
mov dword [ebx], eax
mov eax, dword [0x455f80]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042cd7a
leave
ret 4