Function at 0x52c5ec
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe74
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x174], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x15c]
mov edx, dword [0x472a88]
call fcn.00405c60
xor eax, eax
push ebp
push 0x52c969
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0052d2dc
xor eax, eax
push ebp
push 0x52c927
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x160], esi
mov esi, ebx
test esi, esi
jne 0x52c66d
mov esi, dword [0x5663a8]
mov esi, dword [esi]
cmp dword [ebp - 0x160], 0
jne 0x52c695
push esi
push 0
push 0x4a
call dword [0x66bbbc]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x52c695
call fcn.0042df68
call sub.kernel32.dll_GetCurrentThreadId_1
cmp esi, eax
jne 0x52c6b2
mov ecx, 0x1c8
mov edx, 0x52c980
mov eax, 0x52c9a8
call fcn.00404f58
mov eax, dword [ebp - 0x160]
push eax
call sub.kernel32.dll_SuspendThread
xor eax, eax
push ebp
push 0x52c90d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x164]
mov eax, 0xcc
call fcn.0040f828
mov ebx, eax
xor eax, eax
push ebp
push 0x52c8ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor ecx, ecx
mov edx, 4
call fcn.004038b8
mov dword [ebx], 0x10003
push ebx
mov eax, dword [ebp - 0x160]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x52c8d3
cmp dword [ebx + 0xb8], 0
je 0x52c8d3
cmp dword [ebx + 0xc4], 0
je 0x52c8d3
mov eax, dword [0x565cc4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5661d0]
xor edx, edx
mov dword [eax], edx
call fcn.00470960
lea ecx, [ebp - 0x174]
mov dl, 0x9c
call fcn.00489928
mov ecx, dword [ebp - 0x174]
mov dl, 1
mov eax, dword [0x473a1c]
call fcn.0042c690
mov dword [ebp - 0x168], eax
xor eax, eax
push ebp
push 0x52c8cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebx + 0xb8]
mov ecx, ebx
mov edx, dword [ebp - 0x168]
call fcn.00472c7c
mov dword [ebp - 0x150], esi
push 0
push 0
call fcn.00526914
lea edx, [ebp - 0x15c]
mov cl, 1
call fcn.00528cb8
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x52c8b3
mov eax, dword [ebp - 0x16c]
call fcn.004bae0c
mov dl, 1
call fcn.00488940
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
movzx eax, byte [0x52c9bc]
push eax
push 0
push 1
push 1
push 0
push 0x80000000
push 0
push 0
mov eax, dword [0x565ec4]
mov eax, dword [eax]
xor ecx, ecx
mov dl, 1
call dword [eax + 0x1c]
mov dword [ebp - 0x170], eax
xor eax, eax
push ebp
push 0x52c891
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xb8]
push eax
movzx eax, byte [0x52c9c0]
push eax
push 1
push 0
push 0x80000000
push ebx
mov ecx, esi
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 0x170]
call fcn.004aee74
mov eax, dword [ebp - 0x16c]
call fcn.004bae0c
push eax
push 1
push 0
call fcn.00526914
mov eax, dword [eax]
mov ecx, dword [ebp - 0x170]
mov edx, esi
call fcn.0052a9e8
mov edx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x16c]
call fcn.004bb050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52c898
lea eax, [ebp - 0x170]
call fcn.0040f80c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52c8d3
lea eax, [ebp - 0x168]
call fcn.0040f80c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52c8f3
mov eax, dword [ebp - 0x164]
call fcn.004030b8
ret