Function at 0x4a6ac0
Capabilities:
Resolve function by parsing pe exports
Suspend thread

Disassembly:
sub esp, 0x3c8
mov dword [esp + 8], edi
mov edi, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xa
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [esp], ebx
imul ebx, edx, 0xa
mov edx, 0xa
mul edx
add edx, ebx
mov dword [esp + 4], esi
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x2c]
mov eax, edi
mov dword [esp + 0x30], edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
call fcn.00455f18
xor al, 1
jne 0x4a6efb
cmp byte [edi + 0x29], 0
je 0x4a6ed5
mov ebx, 0x51032c
push ebx
call sub.KERNEL32.DLL_LeaveCriticalSection
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x58], 0
mov dword [esp + 0xac], 0xfffffffe
mov edx, dword [esp + 0x58]
mov dword [esp + 0xb0], edx
mov edx, dword [esp + 0xb0]
imul ebx, edx, 0x2710
mov eax, dword [esp + 0xac]
mov dword [esp + 0x14], ecx
mov edx, 0x2710
mul edx
add edx, ebx
mov dword [esp + 0xec], eax
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x18], esi
mov dword [esp + 0xf0], edx
mov esi, dword [esp + 0xf0]
xor edx, edx
mov dword [esp + 0xbc], ecx
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x48], 0
mov dword [esp + 0xd4], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 0xd8], ebx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0xd4]
imul ecx, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, ecx
mov dword [esp + 0xc0], esi
mov dword [esp + 0xf8], esi
mov dword [esp + 0xcc], eax
mov esi, dword [esp + 0xcc]
mov dword [esp + 0xd0], edx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0xc8], ebx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0xc4], esi
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x54], 0xfffffffe
mov dword [esp + 0x44], 0
push edx
push eax
lea eax, [esp + 0x1c]
call fcn.00451d54
xor ecx, ecx
cmp eax, ecx
jle 0x4a6d63
mov dword [esp + 0x40], ecx
mov esi, dword [esp + 0x40]
mov dword [esp + 0xb8], esi
mov edx, dword [esp + 0xb8]
mov dword [esp + 0xb4], 1
imul ebx, edx, 0x2710
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x3c], 1
mov edx, 0x2710
mul edx
add edx, ebx
mov dword [esp + 0xdc], eax
mov esi, dword [esp + 0xdc]
mov dword [esp + 0xe0], edx
mov eax, dword [esp + 0xe0]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], esi
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
push edx
push eax
lea eax, [esp + 0x1c]
call fcn.00451d54
xor ecx, ecx
cmp eax, ecx
jns 0x4a6d63
mov dword [esp + 0x38], ecx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x98], ebx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x94], 1
imul esi, edx, 0x2710
mov eax, dword [esp + 0x94]
mov dword [esp + 0x34], 1
mov edx, 0x2710
mul edx
add edx, esi
mov dword [esp + 0xe4], eax
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0xe8], edx
mov ebx, dword [esp + 0xe8]
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
push dword [esp + 0xf8]
push dword [esp + 0xf8]
lea eax, [esp + 0x1c]
call fcn.00451d54
test eax, eax
jle 0x4a6df2
mov edx, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf0]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x64]
mov ebx, 0x2710
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x68], ecx
xor ecx, ecx
push esi
push edi
call fcn.004a8c26
pop edi
pop esi
mov esi, eax
push esi
call sub.KERNEL32.DLL_Sleep
push dword [esp + 0xf8]
push dword [esp + 0xf8]
lea eax, [esp + 0x1c]
call fcn.00461a2c
push dword [esp + 0xf8]
push dword [esp + 0xf8]
lea eax, [esp + 0x1c]
call fcn.00451d54
test eax, eax
jg 0x4a6dba
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, 0x2710
mov dword [esp + 0x84], esi
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x88], edx
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x8c], ecx
mov eax, dword [esp + 0x8c]
xor ecx, ecx
push esi
push edi
call fcn.004a8c26
pop edi
pop esi
push eax
call sub.KERNEL32.DLL_Sleep
mov dword [esp + 0x50], 0
mov dword [esp + 0x6c], 0xa
mov esi, dword [esp + 0x50]
mov dword [esp + 0x70], esi
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
imul ecx, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, ecx
mov dword [esp + 0x5c], eax
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x60], edx
mov esi, dword [esp + 0x60]
mov dword [esp + 0x80], esi
mov edx, dword [esp + 0x80]
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x4c], 0xa
push edx
push eax
lea eax, [esp + 0x14]
call fcn.00451d54
test eax, eax
jns 0x4a6eba
push 0
push 2
lea eax, [esp + 0x14]
call fcn.004a77d4
mov ecx, 0x51032c
push ecx
call sub.KERNEL32.DLL_EnterCriticalSection
mov eax, edi
call fcn.00455f18
xor al, 1
jne 0x4a6efb
jmp 0x4a6b2e
mov edx, dword [edi + 0xc]
push edx
call sub.KERNEL32.DLL_GetCurrentThreadId
pop edx
cmp edx, eax
je 0x4a6f23
push dword [edi + 8]
call sub.KERNEL32.DLL_SuspendThread
cmp eax, 0xffffffff
jne 0x4a6f23
mov eax, edi
call fcn.00455f18
xor al, 1
je 0x4a6f16
mov eax, edi
call fcn.00456420
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0x3c8
xor eax, eax
ret
mov ebx, 0x4f5230
push ebx
push 0x18
call fcn.0046186c
mov dword [esp + 0xfc], 0x10003
lea ecx, [esp + 0xfc]
push ecx
push dword [edi + 8]
call sub.KERNEL32.DLL_GetThreadContext
test eax, eax
jne 0x4a6f4f
mov esi, 0x4f5250
push esi
push 0x1d
call fcn.0046186c
movsx edx, byte [edi + 0x4c]
xor dl, 1
je 0x4a6f65
mov ebx, dword [edi + 0x48]
mov eax, dword [esp + 0x1c0]
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x1ac]
mov dword [edi + 0x54], ecx
mov esi, dword [esp + 0x1a0]
mov dword [edi + 0x58], esi
mov edx, dword [esp + 0x1a8]
mov dword [edi + 0x5c], edx
mov eax, dword [esp + 0x1a4]
mov dword [edi + 0x60], eax
mov ebx, dword [esp + 0x198]
mov eax, 1
mov dword [edi + 0x64], ebx
mov ecx, dword [esp + 0x19c]
mov dword [edi + 0x68], ecx
mov esi, dword [esp + 0x1b0]
mov dword [edi + 0x6c], esi
mov edx, dword [esp + 0x1c0]
mov dword [edi + 0x70], edx
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0x3c8
ret