Function at 0x45e5a6
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x45e5c0
mov eax, dword [0x52f3ac]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x52f3c0], eax
je 0x45e5d8
mov eax, 0x10dd
jmp 0x45e7f9
cmp dword [0x52f3c4], 0
je 0x45e5eb
call fcn.0045e805
jmp 0x45e7f4
push esi
mov esi, dword [0x52f3b8]
push edi
jmp 0x45e697
cmp dword [esi + 4], 0
je 0x45e655
mov edx, dword [esi + 0x10]
xor edi, edi
cmp byte [edx + 0x17], 0
jbe 0x45e633
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ecx
mov ecx, dword [esi + 0xc]
add ecx, edi
call fcn.0045f003
cmp dword [ebp - 8], 0
mov edx, eax
jne 0x45e633
mov eax, dword [esi + 0x10]
mov edi, edx
sub edi, eax
movzx eax, byte [eax + 0x17]
cmp edi, eax
jl 0x45e609
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
cmp edi, eax
je 0x45e650
mov eax, dword [esi + 8]
mov dword [0x52f3c4], 0xd
mov dword [0x52f3ac], eax
mov eax, dword [esi + 0xc]
jmp 0x45e690
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov ecx, dword [eax + 0x1c]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
mov dword [edx + 1], ecx
add edx, 5
mov eax, dword [esi + 0x10]
xor ecx, ecx
and dword [ebp - 4], ecx
mov edi, dword [eax + 0x18]
sub edi, edx
cmp edx, dword [eax + 0x18]
cmova edi, dword [ebp - 4]
test edi, edi
je 0x45e68d
mov byte [edx], 0xcc
inc edx
inc ecx
cmp ecx, edi
jb 0x45e684
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x45e5f8
mov edi, dword [0x52f3b0]
jmp 0x45e73c
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10001
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x45e73a
mov esi, dword [0x52f3b8]
test esi, esi
je 0x45e73a
mov ecx, dword [ebp - 0x220]
cmp dword [esi + 4], 0
je 0x45e6f9
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x45e734
lea eax, [edx + 4]
cmp ecx, eax
jae 0x45e734
sub ecx, edx
mov dword [ebp - 0x220], ecx
add ecx, dword [esi + 0xc]
jmp 0x45e718
cmp ecx, dword [esi + 0xc]
jb 0x45e734
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x45e734
sub ecx, dword [esi + 0xc]
mov dword [ebp - 0x220], ecx
add ecx, dword [esi + 0x10]
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x220], ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x220]
mov esi, dword [esi]
test esi, esi
jne 0x45e6d8
mov edi, dword [edi]
test edi, edi
jne 0x45e6aa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x52f3b8]
mov dword [ebp - 4], eax
test edi, edi
je 0x45e7ab
mov ebx, eax
lea eax, [ebp - 4]
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 ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], 0
je 0x45e799
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x45e799
call fcn.0045e9a7
and dword [edi + 0x10], 0
mov esi, dword [edi]
push edi
call fcn.00435bbf
mov edi, esi
pop ecx
test esi, esi
jne 0x45e759
mov ebx, dword [ebp - 0xc]
and dword [0x52f3b8], 0
call fcn.0045ebb6
mov edi, dword [0x52f3b0]
test edi, edi
je 0x45e7d9
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.00435bbf
mov edi, esi
pop ecx
test esi, esi
jne 0x45e7c1
and dword [0x52f3b0], 0
and dword [0x52f3c0], 0
pop edi
pop esi
test ebx, ebx
je 0x45e7f4
mov eax, dword [0x52f3ac]
mov dword [ebx], eax
mov eax, dword [0x52f3c4]
pop ebx
mov esp, ebp
pop ebp
ret