Function at 0x45e661
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2d8], eax
cmp eax, ebx
je 0x45e68c
mov ecx, dword [0x549550]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x549548], eax
je 0x45e6a4
mov eax, 0x10dd
jmp 0x45e8bd
cmp dword [0x54954c], ebx
je 0x45e6b6
call fcn.0045e575
jmp 0x45e8b8
push esi
mov esi, dword [0x549558]
push edi
mov dword [ebp - 0x2d4], ebx
jmp 0x45e713
mov eax, dword [esi + 0x10]
cmp dword [esi + 4], ebx
je 0x45e6e7
movzx ecx, byte [eax + 0x36]
push ecx
add eax, 0x20
push eax
push dword [esi + 0xc]
call fcn.004ddd50
mov ecx, dword [esi + 0xc]
add esp, 0xc
jmp 0x45e70c
mov ecx, dword [eax + 0x44]
mov eax, dword [esi + 0xc]
lea edx, [eax + 5]
mov byte [eax], 0xe9
sub ecx, edx
mov dword [eax + 1], ecx
mov ecx, dword [esi + 0x10]
push dword [ecx + 0x40]
add eax, 5
push eax
call fcn.0045e04e
pop ecx
pop ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov dword [eax], ecx
mov esi, dword [esi]
cmp esi, ebx
jne 0x45e6c6
mov edi, dword [0x549554]
cmp edi, ebx
je 0x45e7e1
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 0x45e7d5
mov esi, dword [0x549558]
jmp 0x45e7d1
cmp dword [esi + 4], 0
je 0x45e78a
mov ecx, dword [esi + 0x10]
cmp dword [ebp - 0x218], ecx
jb 0x45e7cf
lea eax, [ecx + 4]
cmp dword [ebp - 0x218], eax
jae 0x45e7cf
mov al, byte [ebp - 0x218]
sub al, cl
movzx eax, al
push eax
call fcn.0045e618
movzx eax, al
add eax, dword [esi + 0xc]
jmp 0x45e7ba
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x218], eax
jb 0x45e7cf
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x36]
add edx, eax
cmp dword [ebp - 0x218], edx
jae 0x45e7cf
mov al, byte [ebp - 0x218]
sub al, byte [esi + 0xc]
movzx eax, al
push eax
call fcn.0045e63b
add eax, ecx
mov dword [ebp - 0x218], eax
add esp, 4
lea eax, [ebp - 0x2d0]
push eax
push dword [edi + 4]
call ebx
mov esi, dword [esi]
test esi, esi
jne 0x45e755
mov edi, dword [edi]
test edi, edi
jne 0x45e72b
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x549558]
mov dword [ebp - 0x2dc], eax
cmp esi, ebx
je 0x45e856
lea eax, [ebp - 0x2e0]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x36]
push eax
push dword [esi + 0xc]
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [esi + 4], ebx
je 0x45e847
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x45e847
call fcn.0045e475
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x2d4], 1
mov edi, dword [esi]
push esi
call fcn.004ddae9
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x45e7f7
mov dword [0x549558], ebx
cmp dword [ebp - 0x2d4], ebx
je 0x45e871
cmp dword [0x549544], ebx
jne 0x45e871
call fcn.0045e4d5
call fcn.0045e16d
mov esi, dword [0x549554]
cmp esi, ebx
je 0x45e898
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.004ddae9
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x45e880
mov eax, dword [ebp - 0x2d8]
pop edi
mov dword [0x549554], ebx
mov dword [0x549548], ebx
pop esi
cmp eax, ebx
je 0x45e8b8
mov ecx, dword [0x549550]
mov dword [eax], ecx
mov eax, dword [0x54954c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004dea60
leave
ret 4