Function at 0x42c27d
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x4a2d54]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4a7030], eax
je 0x42c2a8
mov eax, 0x10dd
jmp 0x42c4e1
push ebx
xor ebx, ebx
cmp dword [0x4a7034], ebx
je 0x42c2bd
call fcn.0042c1d5
jmp 0x42c4db
push esi
mov esi, dword [0x4a7040]
push edi
jmp 0x42c383
mov eax, dword [esi + 0x10]
cmp dword [esi + 4], ebx
je 0x42c35a
cmp byte [eax + 0x17], 0
mov dword [ebp - 0x334], eax
jbe 0x42c336
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.0042c908
mov edx, dword [ebp - 0x334]
mov eax, edi
lea ecx, [ebp - 0x32c]
call fcn.0042c930
cmp dword [ebp - 0x330], 0
mov dword [ebp - 0x334], eax
jne 0x42c336
mov eax, dword [esi + 0x10]
mov ebx, dword [ebp - 0x334]
sub ebx, eax
movzx eax, byte [eax + 0x17]
cmp ebx, eax
jl 0x42c2e2
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
cmp ebx, eax
je 0x42c353
mov eax, dword [esi + 8]
mov dword [0x4a7034], 0xd
mov dword [0x4a7038], eax
mov ecx, dword [esi + 0xc]
xor ebx, ebx
jmp 0x42c37c
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.0042be23
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov dword [eax], ecx
mov esi, dword [esi]
cmp esi, ebx
jne 0x42c2ca
mov edi, dword [0x4a703c]
cmp edi, ebx
je 0x42c435
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 0x42c429
mov esi, dword [0x4a7040]
jmp 0x42c425
cmp dword [esi + 4], 0
je 0x42c3ec
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x218], eax
jb 0x42c423
lea ecx, [eax + 4]
cmp dword [ebp - 0x218], ecx
jae 0x42c423
sub dword [ebp - 0x218], eax
mov eax, dword [esi + 0xc]
jmp 0x42c411
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x218], eax
jb 0x42c423
mov ecx, dword [esi + 0x10]
movzx ecx, byte [ecx + 0x17]
add ecx, eax
cmp dword [ebp - 0x218], ecx
jae 0x42c423
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 0x42c3c5
mov edi, dword [edi]
test edi, edi
jne 0x42c39f
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x4a7040]
mov dword [ebp - 0x330], eax
cmp edi, ebx
je 0x42c4a0
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 0x42c491
mov esi, dword [edi + 0x10]
cmp esi, ebx
je 0x42c491
call fcn.0042c0fa
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.0044bdaa
pop ecx
mov edi, esi
cmp esi, ebx
jne 0x42c44b
mov dword [0x4a7040], ebx
call fcn.0042befb
mov esi, dword [0x4a703c]
cmp esi, ebx
je 0x42c4cd
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.0044bdaa
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x42c4b5
pop edi
mov dword [0x4a703c], ebx
mov dword [0x4a7030], ebx
pop esi
mov eax, dword [0x4a7034]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044bf82
leave
ret