Function at 0x4b5b60
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 + 0x14], esi
mov dword [esp + 0x18], ecx
call fcn.0049210c
xor al, 1
jne 0x4b5f9c
cmp byte [edi + 0x29], 0
je 0x4b5f76
mov ebx, 0x50f038
push ebx
call sub.KERNEL32.DLL_LeaveCriticalSection
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x40], 0
mov dword [esp + 0x5c], 0xfffffffe
mov edx, dword [esp + 0x40]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
imul ebx, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0xec], eax
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x10], esi
mov dword [esp + 0xf0], edx
mov esi, dword [esp + 0xf0]
xor edx, edx
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x58], 0
mov dword [esp + 0xdc], edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xe0], ebx
mov edx, dword [esp + 0xe0]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0xdc]
imul ecx, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, ecx
mov dword [esp + 0x80], esi
mov dword [esp + 0xf8], esi
mov dword [esp + 0x6c], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x68], ebx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3c], 0xfffffffe
mov dword [esp + 0x54], 0
push edx
push eax
lea eax, [esp + 0x14]
call fcn.0048f714
xor ecx, ecx
cmp eax, ecx
jle 0x4b5dd9
mov dword [esp + 0x48], ecx
mov esi, dword [esp + 0x48]
mov dword [esp + 0x98], esi
mov edx, dword [esp + 0x98]
mov dword [esp + 0x94], 1
imul ebx, edx, 0x2710
mov eax, dword [esp + 0x94]
mov dword [esp + 0x44], 1
mov edx, 0x2710
mul edx
add edx, ebx
mov dword [esp + 0x8c], eax
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x90], edx
mov eax, dword [esp + 0x90]
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], esi
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
push edx
push eax
lea eax, [esp + 0x14]
call fcn.0048f714
xor ecx, ecx
cmp eax, ecx
jns 0x4b5dd9
mov dword [esp + 0x38], ecx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0xb8], ebx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0xb4], 1
imul esi, edx, 0x2710
mov eax, dword [esp + 0xb4]
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 + 0xc], eax
mov dword [esp + 0x10], ebx
push dword [esp + 0xf8]
push dword [esp + 0xf8]
lea eax, [esp + 0x14]
call fcn.0048f714
test eax, eax
jle 0x4b5e81
mov edx, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf0]
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0xc4], edx
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xc8], ecx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0xc0], ecx
mov ebx, 0x2710
xor ecx, ecx
push esi
push edi
call fcn.004b8b36
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 + 0x14]
call fcn.00499664
push dword [esp + 0xf8]
push dword [esp + 0xf8]
lea eax, [esp + 0x14]
call fcn.0048f714
test eax, eax
jg 0x4b5e49
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, 0x2710
mov dword [esp + 0xcc], esi
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd8], edx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0xd4], ecx
mov eax, dword [esp + 0xd4]
xor ecx, ecx
push esi
push edi
call fcn.004b8b36
pop edi
pop esi
push eax
call sub.KERNEL32.DLL_Sleep
mov dword [esp + 0x50], 0
mov dword [esp + 0x9c], 0xa
mov esi, dword [esp + 0x50]
mov dword [esp + 0xa0], esi
mov edx, dword [esp + 0xa0]
imul ecx, edx, 0x2710
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x4c], 0xa
mov edx, 0x2710
mul edx
add edx, ecx
mov dword [esp + 0x74], eax
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x78], edx
mov esi, dword [esp + 0x78]
mov dword [esp + 0xb0], esi
mov edx, dword [esp + 0xb0]
mov dword [esp + 0xac], ebx
mov eax, dword [esp + 0xac]
push edx
push eax
lea eax, [esp + 0x1c]
call fcn.0048f714
test eax, eax
jns 0x4b5f5b
push 0
push 2
lea eax, [esp + 0x1c]
call fcn.004b69e0
mov ecx, 0x50f038
push ecx
call sub.KERNEL32.DLL_EnterCriticalSection
mov eax, edi
call fcn.0049210c
xor al, 1
jne 0x4b5f9c
jmp 0x4b5bce
mov edx, dword [edi + 0xc]
push edx
call sub.KERNEL32.DLL_GetCurrentThreadId
pop edx
cmp edx, eax
je 0x4b5fc4
push dword [edi + 8]
call sub.KERNEL32.DLL_SuspendThread
cmp eax, 0xffffffff
jne 0x4b5fc4
mov eax, edi
call fcn.0049210c
xor al, 1
je 0x4b5fb7
mov eax, edi
call fcn.00492390
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0x3c8
xor eax, eax
ret
mov ebx, 0x509ff0
push ebx
push 0x18
call fcn.0049b348
mov dword [esp + 0xfc], 0x10003
lea ecx, [esp + 0xfc]
push ecx
push dword [edi + 8]
call sub.KERNEL32.DLL_GetThreadContext
test eax, eax
jne 0x4b5ff0
mov esi, 0x50a010
push esi
push 0x1d
call fcn.0049b348
movsx edx, byte [edi + 0x4c]
xor dl, 1
je 0x4b6006
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