Function at 0x529c32
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x634254]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [0x63e024], eax
je 0x529c5d
mov eax, 0x10dd
jmp 0x529e70
cmp dword [0x63def4], 0
je 0x529c70
call fcn.00529b84
jmp 0x529e6b
push ebx
push esi
push edi
mov edi, dword [0x63e19c]
jmp 0x529d0f
cmp dword [edi + 4], 0
mov edx, dword [edi + 0x10]
je 0x529ce6
xor esi, esi
cmp byte [edx + 0x17], 0
jbe 0x529cc3
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x2d4]
and dword [ebp - 0x2d4], 0
add ecx, esi
push eax
push 0
call fcn.0052bbcc
cmp dword [ebp - 0x2d4], 0
mov edx, eax
jne 0x529cc3
mov eax, dword [edi + 0x10]
mov esi, edx
sub esi, eax
movzx eax, byte [eax + 0x17]
cmp esi, eax
jl 0x529c8f
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 8]
movzx eax, byte [eax + 0x17]
cmp esi, eax
je 0x529ce1
mov dword [0x63def4], 0xd
mov dword [0x63e18c], ecx
mov eax, dword [edi + 0xc]
jmp 0x529d0b
mov esi, dword [edi + 0xc]
mov ecx, dword [edx + 0x1c]
lea eax, [esi + 5]
mov byte [esi], 0xe9
sub ecx, eax
mov dword [esi + 1], ecx
lea ecx, [esi + 5]
mov edx, dword [edi + 0x10]
mov edx, dword [edx + 0x18]
call fcn.005297b2
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x10]
mov dword [ecx], eax
mov edi, dword [edi]
test edi, edi
jne 0x529c7e
mov edi, dword [0x63e194]
test edi, edi
je 0x529dc3
mov ebx, dword [sym.imp.KERNEL32.DLL_SetThreadContext]
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 0x529db9
mov esi, dword [0x63e19c]
test esi, esi
je 0x529db9
mov ecx, dword [ebp - 0x218]
cmp dword [esi + 4], 0
je 0x529d7a
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x529db3
lea eax, [edx + 4]
cmp ecx, eax
jae 0x529db3
sub ecx, edx
mov dword [ebp - 0x218], ecx
mov eax, dword [esi + 0xc]
jmp 0x529d99
cmp ecx, dword [esi + 0xc]
jb 0x529db3
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x529db3
sub ecx, dword [esi + 0xc]
mov dword [ebp - 0x218], ecx
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [edi + 4]
call ebx
mov ecx, dword [ebp - 0x218]
mov esi, dword [esi]
test esi, esi
jne 0x529d59
mov edi, dword [edi]
test edi, edi
jne 0x529d2b
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edi, dword [0x63e19c]
mov ebx, eax
test edi, edi
je 0x529e2a
lea eax, [ebp - 0x2d4]
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 0x529e18
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x529e18
call fcn.00529aa5
and dword [edi + 0x10], 0
mov esi, dword [edi]
push 0x18
push edi
call fcn.0056d0c8
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x529dd5
xor ebx, ebx
mov dword [0x63e19c], ebx
call fcn.00529895
mov edi, dword [0x63e194]
test edi, edi
je 0x529e5c
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.0056d0c8
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x529e41
pop edi
pop esi
mov dword [0x63e194], ebx
mov dword [0x63e024], ebx
pop ebx
mov eax, dword [0x63def4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d855
leave
ret