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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6abadb
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x24], ebx
mov al, byte [ebx + 4]
test al, al
jne 0x4e5055
lea edi, [ebx + 0x78]
mov dword [esp + 0x2c], edi
jmp 0x4e4d60
or esi, 0xffffffff
cmp dword [0x77b0bc], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], 0xffffffff
jne 0x4e4daa
push 0x1c
call fcn.006341f8
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], 0
test eax, eax
je 0x4e4d9b
mov ecx, eax
call fcn.004e47a0
jmp 0x4e4d9d
xor eax, eax
mov dword [esp + 0x58], 0xffffffff
mov dword [0x77b0bc], eax
push 0x789f34
mov dword [esp + 0x34], 0x789f34
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x58], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
cmp ebx, dword [0x796c18]
jae 0x4e4de3
add dword [0x77c2c0], 0
adc dword [0x77c2c4], 1
mov dword [0x796c18], ebx
mov dword [esp + 0x58], 0xffffffff
push 0x789f34
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add ebx, dword [0x77c2c0]
push edi
adc eax, dword [0x77c2c4]
mov dword [esp + 0x38], edi
shld eax, ebx, 0x10
shl ebx, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x58], 2
mov eax, dword [esp + 0x24]
xor cl, cl
mov esi, dword [eax + 0x14]
mov byte [esp + 0x13], cl
cmp esi, dword [eax + 0x18]
je 0x4e4fa7
mov edi, dword [esp + 0x20]
mov ebx, dword [esi]
mov al, byte [ebx + 0x34]
test al, al
je 0x4e4f59
mov edx, dword [ebx + 0x20]
mov eax, edx
or eax, dword [ebx + 0x24]
je 0x4e4f59
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x28]
cmp dword [ebx + 0x2c], ecx
ja 0x4e4f20
mov ecx, dword [esp + 0x18]
jb 0x4e4e7f
cmp eax, ecx
jae 0x4e4f20
push dword [ebx + 0x24]
sub ecx, eax
mov eax, dword [esp + 0x20]
sbb eax, dword [ebx + 0x2c]
push edx
push eax
push ecx
call fcn.0063d920
lea ecx, [eax + 1]
mov dword [esp + 0x28], ecx
cmp ecx, 0x28
jbe 0x4e4edd
cmp dword [ebx + 0x30], 0
jne 0x4e4ebf
mov eax, dword [0x77c2c8]
test eax, eax
je 0x4e4ebf
lea ecx, [esp + 0x20]
push ecx
lea ecx, [eax + 0x20]
mov dword [esp + 0x24], ebx
call fcn.00441190
inc dword [ebx + 0x30]
mov ecx, dword [ebx + 0x20]
add ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x24]
adc eax, dword [esp + 0x1c]
mov byte [esp + 0x13], 1
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], eax
jmp 0x4e4f20
cmp dword [ebx + 0x30], 0
jne 0x4e4f01
mov eax, dword [0x77c2c8]
test eax, eax
je 0x4e4f01
lea ecx, [esp + 0x20]
push ecx
lea ecx, [eax + 0x20]
mov dword [esp + 0x24], ebx
call fcn.00441190
mov ecx, dword [esp + 0x28]
push dword [ebx + 0x24]
add dword [ebx + 0x30], ecx
push dword [ebx + 0x20]
mov byte [esp + 0x1b], 1
push 0
push ecx
call fcn.0063d8e0
add dword [ebx + 0x28], eax
adc edx, dword [ebx + 0x2c]
mov dword [ebx + 0x2c], edx
mov ecx, dword [ebx + 0x28]
sub ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x2c]
sbb edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov eax, edi
and eax, ebx
cmp eax, 0xffffffff
jne 0x4e4f45
mov ebx, edx
mov edi, ecx
mov dword [esp + 0x14], ebx
jmp 0x4e4f5d
cmp ebx, edx
jb 0x4e4f5d
ja 0x4e4f4f
cmp edi, ecx
jbe 0x4e4f5d
mov ebx, edx
mov edi, ecx
mov dword [esp + 0x14], ebx
jmp 0x4e4f5d
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add esi, 4
cmp esi, dword [eax + 0x18]
jne 0x4e4e46
mov eax, edi
mov dword [esp + 0x20], edi
and eax, ebx
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x4e4fa3
test ebx, ebx
jne 0x4e4f98
mov esi, dword [esp + 0x20]
cmp esi, 0x80000000
jae 0x4e4f98
mov cl, byte [esp + 0x13]
jmp 0x4e4faa
mov cl, byte [esp + 0x13]
mov esi, 0x7fffffff
jmp 0x4e4faa
mov cl, byte [esp + 0x13]
or esi, 0xffffffff
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x18]
sub eax, dword [ebx + 0x14]
test eax, 0xfffffffc
mov eax, 0xffffffff
cmove esi, eax
test cl, cl
je 0x4e5005
cmp byte [ebx + 0x2c], 0
jne 0x4e5005
mov eax, dword [ebx + 0x38]
lea ecx, [ebx + 0x38]
lea edx, [esp + 0x38]
push edx
mov byte [ebx + 0x2c], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x8001
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call dword [eax + 0x10]
mov dword [esp + 0x58], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0xffffffff
je 0x4e5037
movzx eax, si
neg eax
sbb eax, eax
neg eax
shr esi, 0x10
add esi, eax
cmp esi, 0xffffffff
je 0x4e5037
cmp esi, 3
mov eax, 3
cmovb esi, eax
mov eax, 0xffffffff
test esi, esi
cmove esi, eax
push esi
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx + 4], 0
je 0x4e4d60
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret