Function at 0x4a72dc
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 [0x51050c]
call fcn.004a76d4
mov ecx, 1
cmp eax, ecx
jle 0x4a75de
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x40], 0
mov esi, dword [esp + 0x18]
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x64], 0x64
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ecx
imul ecx, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x5c], 0xfffffffe
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x5c]
imul ebx, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x44], 0
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x44]
imul esi, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, esi
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
imul ecx, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, ecx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
imul ebx, edx, 0x2710
mov edx, 0x2710
mul edx
add edx, ebx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x1c], 0xfffffffe
mov dword [esp + 0x14], 0
mov dword [esp + 0xc0], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x78], 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.00451d54
xor ebx, ebx
cmp eax, ebx
jle 0x4a7504
push dword [esp + 0x80]
push dword [esp + 0x80]
lea eax, [esp + 0x14]
call fcn.00451d54
cmp eax, ebx
jns 0x4a7504
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
push dword [esp + 0xc0]
push dword [esp + 0xc0]
lea eax, [esp + 0x14]
call fcn.00451d54
cmp eax, ebx
jle 0x4a757c
mov ebx, dword [esp + 0xac]
mov edx, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x74]
mov ebx, 0x2710
push esi
push edi
call fcn.004a8c26
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.00461a2c
push dword [esp + 0xc0]
push dword [esp + 0xc0]
lea eax, [esp + 0x14]
call fcn.00451d54
test eax, eax
jg 0x4a7544
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, 0x2710
mov dword [esp + 0x94], esi
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x98], 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 eax, dword [0x51050c]
call fcn.004a76d4
cmp eax, 1
jg 0x4a7466
call sub.KERNEL32.DLL_GetCurrentThreadId
call fcn.004a6940
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov esi, 0x5104ec
push esi
call sub.KERNEL32.DLL_EnterCriticalSection
cmp dword [0x5104d8], 0
je 0x4a7651
xor ebx, ebx
mov edi, dword [0x5104dc]
add edi, ebx
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
mov ecx, edx
or ecx, eax
je 0x4a7636
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], edx
mov esi, 0xc
mov edi, dword [0x5104d8]
lea eax, [edi + edi*2]
add ebx, esi
lea eax, [eax*4]
cmp ebx, eax
jb 0x4a7614
mov edx, 0x5104ec
push edx
call sub.KERNEL32.DLL_LeaveCriticalSection
mov ecx, dword [esp + 0xb8]
or ecx, dword [esp + 0xb4]
je 0x4a767f
mov eax, dword [esp + 0xb4]
call dword [esp + 0xb8]
jmp 0x4a75e8
push 0
push dword [0x51050c]
call sub.KERNEL32.DLL_FreeLibraryAndExitThread
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0xc4
ret