Function at 0x54e4d6
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2dc], ebx
test ebx, ebx
je 0x54e4fe
mov eax, dword [0x60e0b8]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x60e0b0], eax
je 0x54e516
mov eax, 0x10dd
jmp 0x54e723
cmp dword [0x60e0b4], 0
je 0x54e529
call fcn.0054e3d3
jmp 0x54e71e
and dword [ebp - 0x2d8], 0
push esi
mov esi, dword [0x60e0c0]
push edi
jmp 0x54e58b
cmp dword [esi + 4], 0
je 0x54e55c
mov ecx, dword [esi + 0x10]
movzx eax, byte [ecx + 0x36]
push eax
lea eax, [ecx + 0x20]
push eax
push dword [esi + 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0xc]
add esp, 0xc
jmp 0x54e584
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov ecx, dword [eax + 0x44]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
mov dword [edx + 1], ecx
mov eax, dword [esi + 0x10]
push dword [eax + 0x40]
lea eax, [edx + 5]
push eax
call fcn.0054ddf1
mov eax, dword [esi + 0x10]
pop ecx
pop ecx
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x54e53a
mov edi, dword [0x60e0bc]
jmp 0x54e639
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x54e637
mov esi, dword [0x60e0c0]
test esi, esi
je 0x54e637
mov ecx, dword [ebp - 0x218]
cmp dword [esi + 4], 0
je 0x54e5f0
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x54e631
lea eax, [edx + 4]
cmp ecx, eax
jae 0x54e631
sub cl, dl
movzx eax, cl
push eax
push edx
call fcn.0054da42
movzx eax, al
add eax, dword [esi + 0xc]
jmp 0x54e613
cmp ecx, dword [esi + 0xc]
jb 0x54e631
mov edx, dword [esi + 0x10]
movzx eax, byte [edx + 0x36]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x54e631
sub cl, byte [esi + 0xc]
movzx eax, cl
push eax
push edx
call fcn.0054da19
add eax, dword [esi + 0x10]
pop ecx
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x2d0]
pop ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x218]
mov esi, dword [esi]
test esi, esi
jne 0x54e5c8
mov edi, dword [edi]
test edi, edi
jne 0x54e59a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x60e0c0]
mov dword [ebp - 0x2d4], eax
test edi, edi
je 0x54e6be
mov ebx, eax
lea eax, [ebp - 0x2d4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], 0
je 0x54e6a9
cmp dword [edi + 0x10], 0
je 0x54e6a9
push dword [edi + 0x10]
call fcn.0054dd85
and dword [edi + 0x10], 0
pop ecx
mov dword [ebp - 0x2d8], 1
mov esi, dword [edi]
push edi
call fcn.0054cbcb
mov edi, esi
pop ecx
test esi, esi
jne 0x54e659
mov ebx, dword [ebp - 0x2dc]
and dword [0x60e0c0], 0
cmp dword [ebp - 0x2d8], 0
je 0x54e6dc
cmp dword [0x60e0ac], 0
jne 0x54e6dc
call fcn.0054ddaf
call fcn.0054defc
mov edi, dword [0x60e0bc]
test edi, edi
je 0x54e703
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.0054cbcb
mov edi, esi
pop ecx
test esi, esi
jne 0x54e6eb
and dword [0x60e0bc], 0
and dword [0x60e0b0], 0
pop edi
pop esi
test ebx, ebx
je 0x54e71e
mov eax, dword [0x60e0b8]
mov dword [ebx], eax
mov eax, dword [0x60e0b4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0054bed3
mov esp, ebp
pop ebp
ret 4