Function at 0x42aadf
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x4a0d38]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4a5008], eax
je 0x42ab0a
mov eax, 0x10dd
jmp 0x42ad43
push ebx
xor ebx, ebx
cmp dword [0x4a500c], ebx
je 0x42ab1f
call fcn.0042aa37
jmp 0x42ad3d
push esi
mov esi, dword [0x4a5018]
push edi
jmp 0x42abe5
mov eax, dword [esi + 0x10]
cmp dword [esi + 4], ebx
je 0x42abbc
cmp byte [eax + 0x17], 0
mov dword [ebp - 0x334], eax
jbe 0x42ab98
mov edi, dword [esi + 0xc]
and dword [ebp - 0x330], 0
lea edx, [ebp - 0x330]
xor ecx, ecx
lea eax, [ebp - 0x32c]
add edi, ebx
call fcn.0042be49
mov edx, dword [ebp - 0x334]
mov eax, edi
lea ecx, [ebp - 0x32c]
call fcn.0042be71
cmp dword [ebp - 0x330], 0
mov dword [ebp - 0x334], eax
jne 0x42ab98
mov eax, dword [esi + 0x10]
mov ebx, dword [ebp - 0x334]
sub ebx, eax
movzx eax, byte [eax + 0x17]
cmp ebx, eax
jl 0x42ab44
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
cmp ebx, eax
je 0x42abb5
mov eax, dword [esi + 8]
mov dword [0x4a500c], 0xd
mov dword [0x4a5010], eax
mov ecx, dword [esi + 0xc]
xor ebx, ebx
jmp 0x42abde
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 0xc]
lea edx, [eax + 5]
sub ecx, edx
mov byte [eax], 0xe9
mov dword [eax + 1], ecx
mov edx, dword [esi + 0x10]
lea ecx, [eax + 5]
mov eax, dword [edx + 0x18]
call fcn.0042a685
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov dword [eax], ecx
mov esi, dword [esi]
cmp esi, ebx
jne 0x42ab2c
mov edi, dword [0x4a5014]
cmp edi, ebx
je 0x42ac97
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
lea eax, [ebp - 0x2d0]
push eax
push dword [edi + 4]
mov dword [ebp - 0x2d0], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x42ac8b
mov esi, dword [0x4a5018]
jmp 0x42ac87
cmp dword [esi + 4], 0
je 0x42ac4e
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x218], eax
jb 0x42ac85
lea ecx, [eax + 4]
cmp dword [ebp - 0x218], ecx
jae 0x42ac85
sub dword [ebp - 0x218], eax
mov eax, dword [esi + 0xc]
jmp 0x42ac73
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x218], eax
jb 0x42ac85
mov ecx, dword [esi + 0x10]
movzx ecx, byte [ecx + 0x17]
add ecx, eax
cmp dword [ebp - 0x218], ecx
jae 0x42ac85
sub dword [ebp - 0x218], eax
mov eax, dword [esi + 0x10]
add dword [ebp - 0x218], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [edi + 4]
call ebx
mov esi, dword [esi]
test esi, esi
jne 0x42ac27
mov edi, dword [edi]
test edi, edi
jne 0x42ac01
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x4a5018]
mov dword [ebp - 0x330], eax
cmp edi, ebx
je 0x42ad02
lea eax, [ebp - 0x334]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], ebx
je 0x42acf3
mov esi, dword [edi + 0x10]
cmp esi, ebx
je 0x42acf3
call fcn.0042a95c
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.0044a602
pop ecx
mov edi, esi
cmp esi, ebx
jne 0x42acad
mov dword [0x4a5018], ebx
call fcn.0042a75d
mov esi, dword [0x4a5014]
cmp esi, ebx
je 0x42ad2f
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.0044a602
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x42ad17
pop edi
mov dword [0x4a5014], ebx
mov dword [0x4a5008], ebx
pop esi
mov eax, dword [0x4a500c]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a7da
leave
ret