Function at 0x52e21c
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 0x52e599
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0052ef0c
xor eax, eax
push ebp
push 0x52e557
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x160], esi
mov esi, ebx
test esi, esi
jne 0x52e29d
mov esi, dword [0x56b554]
mov esi, dword [esi]
cmp dword [ebp - 0x160], 0
jne 0x52e2c5
push esi
push 0
push 0x4a
call dword [0x670bbc]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x52e2c5
call fcn.0042df68
call sub.kernel32.dll_GetCurrentThreadId_1
cmp esi, eax
jne 0x52e2e2
mov ecx, 0x1c8
mov edx, 0x52e5b0
mov eax, 0x52e5d8
call fcn.00404f58
mov eax, dword [ebp - 0x160]
push eax
call sub.kernel32.dll_SuspendThread
xor eax, eax
push ebp
push 0x52e53d
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 0x52e51c
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 0x52e503
cmp dword [ebx + 0xb8], 0
je 0x52e503
cmp dword [ebx + 0xc4], 0
je 0x52e503
mov eax, dword [0x56ae74]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x56b37c]
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 0x52e4fc
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.00528544
lea edx, [ebp - 0x15c]
mov cl, 1
call fcn.0052a8e8
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x52e4e3
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 [0x52e5ec]
push eax
push 0
push 1
push 1
push 0
push 0x80000000
push 0
push 0
mov eax, dword [0x56b074]
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 0x52e4c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xb8]
push eax
movzx eax, byte [0x52e5f0]
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.00528544
mov eax, dword [eax]
mov ecx, dword [ebp - 0x170]
mov edx, esi
call fcn.0052c618
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 0x52e4c8
lea eax, [ebp - 0x170]
call fcn.0040f80c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e503
lea eax, [ebp - 0x168]
call fcn.0040f80c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e523
mov eax, dword [ebp - 0x164]
call fcn.004030b8
ret