Function at 0x4b63b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc4
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov eax, dword [0x50efcc]
call fcn.004b67a8
mov ecx, 1
cmp eax, ecx
jle 0x4b66b2
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x40], 0
mov esi, dword [esp + 0x28]
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x54], 0x64
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], ecx
imul ecx, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x44], 0xfffffffe
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x44]
imul ebx, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x5c], 0
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x5c]
imul esi, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, esi
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x4c]
imul ecx, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, ecx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
imul ebx, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, ebx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x1c], 0xfffffffe
mov dword [esp + 0x24], 0
mov dword [esp + 0xc0], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x70], esi
mov dword [esp + 0x84], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0xac], 0
mov ebx, dword [esp + 0x9c]
mov esi, dword [esp + 0xa0]
mov dword [esp + 0xb0], 0
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xac], ecx
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc], ebx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x10], esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xbc], edx
push dword [esp + 0x88]
push dword [esp + 0x88]
lea eax, [esp + 0x14]
call fcn.0048f714
xor ebx, ebx
cmp eax, ebx
jle 0x4b65d8
push dword [esp + 0x80]
push dword [esp + 0x80]
lea eax, [esp + 0x14]
call fcn.0048f714
cmp eax, ebx
jns 0x4b65d8
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
push dword [esp + 0xc0]
push dword [esp + 0xc0]
lea eax, [esp + 0x14]
call fcn.0048f714
cmp eax, ebx
jle 0x4b6650
mov ebx, dword [esp + 0xac]
mov edx, dword [esp + 0x70]
xor ecx, ecx
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + 0x6c]
mov ebx, 0x2710
push esi
push edi
call fcn.004b8b36
pop edi
pop esi
mov esi, eax
push esi
call sub.KERNEL32.DLL_Sleep
push dword [esp + 0xc0]
push dword [esp + 0xc0]
lea eax, [esp + 0x14]
call fcn.00499664
push dword [esp + 0xc0]
push dword [esp + 0xc0]
lea eax, [esp + 0x14]
call fcn.0048f714
test eax, eax
jg 0x4b6618
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, 0x2710
mov dword [esp + 0x8c], esi
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x90], edx
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x94], ecx
mov eax, dword [esp + 0x94]
xor ecx, ecx
push esi
push edi
call fcn.004b8b36
pop edi
pop esi
push eax
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x50efcc]
call fcn.004b67a8
cmp eax, 1
jg 0x4b653a
call sub.KERNEL32.DLL_GetCurrentThreadId
call fcn.004b49f0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov esi, 0x50efac
push esi
call sub.KERNEL32.DLL_EnterCriticalSection
cmp dword [0x50ef98], 0
je 0x4b6725
xor ebx, ebx
mov edi, dword [0x50ef9c]
add edi, ebx
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
mov ecx, edx
or ecx, eax
je 0x4b670a
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], edx
mov esi, 0xc
mov edi, dword [0x50ef98]
lea eax, [edi + edi*2]
add ebx, esi
lea eax, [eax*4]
cmp ebx, eax
jb 0x4b66e8
mov edx, 0x50efac
push edx
call sub.KERNEL32.DLL_LeaveCriticalSection
mov ecx, dword [esp + 0xb8]
or ecx, dword [esp + 0xb4]
je 0x4b6753
mov eax, dword [esp + 0xb4]
call dword [esp + 0xb8]
jmp 0x4b66bc
push 0
push dword [0x50efcc]
call sub.KERNEL32.DLL_FreeLibraryAndExitThread
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0xc4
ret