Function at 0x45e067
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2d4
mov eax, dword [0x52efc0]
mov ecx, dword [ebp + 8]
xor eax, ebp
test ecx, ecx
mov dword [ebp - 0x10], eax
je 0x45e08b
mov eax, dword [0x537edc]
mov dword [ecx], eax
mov edi, dword [0x537ecc]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x10dd
cmp edi, eax
jne 0x45e310
cmp dword [0x537ed8], 0
je 0x45e0b7
call fcn.0045df21
jmp 0x45e30a
mov esi, dword [0x537ed0]
test esi, esi
je 0x45e17c
xor ebx, ebx
cmp dword [esi + 4], 0
mov ecx, dword [esi + 0x10]
je 0x45e10f
cmp byte [ecx + 0x17], 0
je 0x45e143
xor edi, edi
mov dword [ebp - 0x2dc], ebx
lea edx, [ebp - 0x2dc]
mov eax, dword [esi + 0xc]
add eax, edi
push edx
push ebx
push ecx
push eax
call fcn.0046435c
cmp dword [ebp - 0x2dc], ebx
jne 0x45e149
mov edx, dword [esi + 0x10]
mov ecx, eax
sub eax, edx
movzx edx, byte [edx + 0x17]
mov edi, eax
cmp eax, edx
jl 0x45e0d8
mov edi, eax
jmp 0x45e14f
mov edx, dword [esi + 0xc]
mov ecx, dword [ecx + 0x1c]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
mov dword [edx + 1], ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0x18]
cmp eax, edx
jae 0x45e13e
sub edx, eax
push edx
push 0xcc
push eax
call fcn.004b81d0
add esp, 0xc
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
jmp 0x45e170
xor edx, edx
xor edi, edi
jmp 0x45e14f
mov eax, dword [esi + 0x10]
mov dl, byte [eax + 0x17]
movzx eax, dl
cmp edi, eax
jne 0x45e15b
mov eax, dword [esi + 8]
jmp 0x45e16d
mov dword [0x537ed8], 0xd
mov eax, dword [esi + 8]
mov dword [0x537edc], eax
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
mov esi, dword [esi]
test esi, esi
jne 0x45e0c7
mov esi, dword [0x537ed4]
test esi, esi
je 0x45e228
lea edi, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x10001
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x45e21e
mov ebx, dword [0x537ed0]
test ebx, ebx
je 0x45e21e
mov dword [ebp - 0x2e0], esi
cmp dword [ebx + 4], 0
mov eax, dword [ebp - 0x224]
je 0x45e1df
mov edx, dword [ebx + 0x10]
mov ecx, eax
sub ecx, edx
jb 0x45e218
add edx, 4
cmp eax, edx
jae 0x45e218
mov dword [ebp - 0x224], ecx
add ecx, dword [ebx + 0xc]
jmp 0x45e208
mov edx, dword [ebx + 0xc]
mov ecx, eax
sub ecx, edx
jb 0x45e218
mov esi, edi
mov edi, dword [ebx + 0x10]
movzx edi, byte [edi + 0x17]
add edx, edi
mov edi, esi
mov esi, dword [ebp - 0x2e0]
cmp eax, edx
jae 0x45e218
mov dword [ebp - 0x224], ecx
add ecx, dword [ebx + 0x10]
mov dword [ebp - 0x224], ecx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x45e1b8
mov esi, dword [esi]
test esi, esi
jne 0x45e190
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x537ed0]
mov dword [ebp - 0x2e0], eax
test edi, edi
je 0x45e2bb
xor ebx, ebx
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x2dc]
movzx eax, byte [eax + 0x17]
push ecx
push dword [edi + 0x14]
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 - 0x2e0]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], 0
je 0x45e2aa
mov eax, dword [edi + 0x10]
test eax, eax
je 0x45e2aa
mov ecx, eax
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], ebx
and ecx, 0xffff0000
mov edx, dword [ecx + 8]
mov dword [eax + 0x18], edx
mov dword [ecx + 8], eax
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.004aeac6
add esp, 4
test esi, esi
mov edi, esi
jne 0x45e240
mov dword [0x537ed0], 0
call fcn.0045e011
mov esi, dword [0x537ed4]
test esi, esi
je 0x45e2f0
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esi + 4]
call edi
mov ebx, dword [esi]
push esi
call fcn.004aeac6
add esp, 4
test ebx, ebx
mov esi, ebx
jne 0x45e2da
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [0x537ed4], eax
mov dword [0x537ecc], eax
test ecx, ecx
je 0x45e30a
mov eax, dword [0x537edc]
mov dword [ecx], eax
mov esi, dword [0x537ed8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb01
mov eax, esi
add esp, 0x2d4
pop esi
pop edi
pop ebx
pop ebp
ret 4