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

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x70]
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1a4]
shr eax, 1
xor ebp, ebp
xor ecx, ecx
cmp eax, ebp
push edi
jbe 0x4e0bda
mov edx, dword [esi + 0x1a0]
cmp dword [edx], ebx
je 0x4e0bd1
inc ecx
add edx, 4
cmp ecx, eax
jb 0x4e0bc3
jmp 0x4e0bda
cmp ecx, 0xffffffff
jne 0x4e0e5e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov edx, dword [ebx]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
mov ecx, ebx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0x3f800000
mov byte [esp + 0x60], 1
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x1c], vtable.ytUIEvent.0
mov dword [esp + 0x38], ebp
mov byte [esp + 0x80], 0
mov byte [esp + 0x81], 0
mov byte [esp + 0x78], 0
mov dword [esp + 0x64], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], 0x1b
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [edx + 0xc]
mov eax, dword [esi + 0x1a4]
test al, 1
jne 0x4e0dd2
shr eax, 1
lea edx, [eax - 1]
test eax, edx
jne 0x4e0d35
lea edi, [eax + eax]
cmp edi, ebp
jne 0x4e0cce
mov edi, 1
test edi, edi
je 0x4e0d12
lea eax, [edi*4]
push eax
call fcn.00489377
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4e0dd0
mov eax, dword [esi + 0x1a4]
shr eax, 1
cmp eax, edi
ja 0x4e0cfa
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x4e0d12
mov ecx, dword [esi + 0x1a0]
mov edx, dword [ecx + eax*4]
mov dword [ebp + eax*4], edx
inc eax
cmp eax, edi
jb 0x4e0d00
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x4e0d25
push eax
call fcn.00489183
add esp, 4
test ebp, ebp
mov dword [esi + 0x1a0], ebp
je 0x4e0dd0
xor ebp, ebp
mov eax, dword [esi + 0x1a4]
mov ecx, dword [esi + 0x1a0]
shr eax, 1
mov dword [ecx + eax*4], ebx
mov ecx, dword [esi + 0x1a4]
mov edx, dword [esi + 0x1a0]
mov eax, ecx
and eax, 0xfffffffe
add eax, 2
and ecx, 1
xor eax, ecx
mov dword [esi + 0x1a4], eax
shr eax, 1
lea eax, [edx + eax*4 - 4]
cmp eax, ebp
je 0x4e0dd2
mov eax, dword [esp + 0x70]
cmp eax, ebp
mov dword [esp + 0x10], vtable.ytUIEvent.0
je 0x4e0e5e
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4e0e5e
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e0e4d
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4e0e48
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e0e4d
xor ebp, ebp
mov eax, dword [esp + 0x70]
cmp eax, ebp
mov dword [esp + 0x10], vtable.ytUIEvent.0
je 0x4e0e39
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4e0e39
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e0e28
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4e0e23
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e0e28
mov eax, 0xff
cmp eax, ebp
jne 0x4e0e39
mov eax, dword [esp + 0x70]
push eax
call fcn.00499410
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x68
ret 4
mov eax, 0xff
cmp eax, ebp
jne 0x4e0e5e
mov eax, dword [esp + 0x70]
push eax
call fcn.00499410
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret 4