Function at 0x52a6e8
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 [0x4722a0]
call fcn.00405c60
xor eax, eax
push ebp
push 0x52aa65
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0052b3d8
xor eax, eax
push ebp
push 0x52aa23
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x160], esi
mov esi, ebx
test esi, esi
jne 0x52a769
mov esi, dword [0x55cd0c]
mov esi, dword [esi]
cmp dword [ebp - 0x160], 0
jne 0x52a791
push esi
push 0
push 0x4a
call dword [0x661bbc]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x52a791
call fcn.0042ddc0
call sub.kernel32.dll_GetCurrentThreadId_1
cmp esi, eax
jne 0x52a7ae
mov ecx, 0x1c8
mov edx, 0x52aa7c
mov eax, 0x52aaa4
call fcn.00404f58
mov eax, dword [ebp - 0x160]
push eax
call sub.kernel32.dll_SuspendThread
xor eax, eax
push ebp
push 0x52aa09
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x164]
mov eax, 0xcc
call fcn.0040f7a4
mov ebx, eax
xor eax, eax
push ebp
push 0x52a9e8
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 0x52a9cf
cmp dword [ebx + 0xb8], 0
je 0x52a9cf
cmp dword [ebx + 0xc4], 0
je 0x52a9cf
mov eax, dword [0x55c644]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x55cb34]
xor edx, edx
mov dword [eax], edx
call fcn.00470178
lea ecx, [ebp - 0x174]
mov dl, 0x9c
call fcn.00489140
mov ecx, dword [ebp - 0x174]
mov dl, 1
mov eax, dword [0x473234]
call fcn.0042c4e8
mov dword [ebp - 0x168], eax
xor eax, eax
push ebp
push 0x52a9c8
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.00472494
mov dword [ebp - 0x150], esi
push 0
push 0
call fcn.00524a10
lea edx, [ebp - 0x15c]
mov cl, 1
call fcn.00526db4
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x52a9af
mov eax, dword [ebp - 0x16c]
call fcn.004ba510
mov dl, 1
call fcn.00488158
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
movzx eax, byte [0x52aab8]
push eax
push 0
push 1
push 1
push 0
push 0x80000000
push 0
push 0
mov eax, dword [0x55c83c]
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 0x52a98d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xb8]
push eax
movzx eax, byte [0x52aabc]
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.004ae578
mov eax, dword [ebp - 0x16c]
call fcn.004ba510
push eax
push 1
push 0
call fcn.00524a10
mov eax, dword [eax]
mov ecx, dword [ebp - 0x170]
mov edx, esi
call fcn.00528ae4
mov edx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x16c]
call fcn.004ba754
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52a994
lea eax, [ebp - 0x170]
call fcn.0040f788
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52a9cf
lea eax, [ebp - 0x168]
call fcn.0040f788
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52a9ef
mov eax, dword [ebp - 0x164]
call fcn.004030b8
ret