Function at 0x560e36
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x620514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2dc], ebx
test ebx, ebx
je 0x560e5e
mov eax, dword [0x6260f8]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6260f0], eax
je 0x560e76
mov eax, 0x10dd
jmp 0x561083
cmp dword [0x6260f4], 0
je 0x560e89
call fcn.00560d33
jmp 0x56107e
and dword [ebp - 0x2d8], 0
push esi
mov esi, dword [0x626100]
push edi
jmp 0x560eeb
cmp dword [esi + 4], 0
je 0x560ebc
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 0x560ee4
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.00560751
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 0x560e9a
mov edi, dword [0x6260fc]
jmp 0x560f99
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 0x560f97
mov esi, dword [0x626100]
test esi, esi
je 0x560f97
mov ecx, dword [ebp - 0x218]
cmp dword [esi + 4], 0
je 0x560f50
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x560f91
lea eax, [edx + 4]
cmp ecx, eax
jae 0x560f91
sub cl, dl
movzx eax, cl
push eax
push edx
call fcn.005603a2
movzx eax, al
add eax, dword [esi + 0xc]
jmp 0x560f73
cmp ecx, dword [esi + 0xc]
jb 0x560f91
mov edx, dword [esi + 0x10]
movzx eax, byte [edx + 0x36]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x560f91
sub cl, byte [esi + 0xc]
movzx eax, cl
push eax
push edx
call fcn.00560379
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 0x560f28
mov edi, dword [edi]
test edi, edi
jne 0x560efa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x626100]
mov dword [ebp - 0x2d4], eax
test edi, edi
je 0x56101e
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 0x561009
cmp dword [edi + 0x10], 0
je 0x561009
push dword [edi + 0x10]
call fcn.005606e5
and dword [edi + 0x10], 0
pop ecx
mov dword [ebp - 0x2d8], 1
mov esi, dword [edi]
push edi
call fcn.0055f52b
mov edi, esi
pop ecx
test esi, esi
jne 0x560fb9
mov ebx, dword [ebp - 0x2dc]
and dword [0x626100], 0
cmp dword [ebp - 0x2d8], 0
je 0x56103c
cmp dword [0x6260ec], 0
jne 0x56103c
call fcn.0056070f
call fcn.0056085c
mov edi, dword [0x6260fc]
test edi, edi
je 0x561063
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.0055f52b
mov edi, esi
pop ecx
test esi, esi
jne 0x56104b
and dword [0x6260fc], 0
and dword [0x6260f0], 0
pop edi
pop esi
test ebx, ebx
je 0x56107e
mov eax, dword [0x6260f8]
mov dword [ebx], eax
mov eax, dword [0x6260f4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0055e833
mov esp, ebp
pop ebp
ret 4