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

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1a4]
push edi
shr eax, 1
xor edi, edi
xor ecx, ecx
cmp eax, edi
jbe 0x4e0836
mov edx, dword [esi + 0x1a0]
nop
mov ebp, dword [esp + 0x88]
cmp dword [edx], ebp
je 0x4e0825
inc ecx
add edx, 4
cmp ecx, eax
jb 0x4e0810
jmp 0x4e083d
cmp ecx, 0xffffffff
je 0x4e083d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x74
ret 4
mov ebp, dword [esp + 0x88]
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax]
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
mov ecx, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x3f800000
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0x3f800000
mov byte [esp + 0x6c], 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], edi
mov dword [esp + 0x28], vtable.ytUIEvent.0
mov dword [esp + 0x44], edi
mov byte [esp + 0x8c], 0
mov byte [esp + 0x8d], 0
mov byte [esp + 0x84], 0
mov dword [esp + 0x70], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], 0x1b
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call dword [edx + 0xc]
mov ecx, dword [esi + 0x1a4]
mov eax, ecx
shr eax, 1
lea ebx, [eax + 1]
and ecx, 1
cmp ebx, eax
jne 0x4e0935
mov eax, dword [esi + 0x1a0]
jmp 0x4e0a6e
cmp ecx, edi
je 0x4e09a8
test ebx, ebx
je 0x4e0978
lea edx, [ebx*4]
push edx
call fcn.00489377
mov edi, eax
add esp, 4
test edi, edi
je 0x4e0991
mov ecx, dword [esi + 0x1a4]
shr ecx, 1
cmp ecx, ebx
jbe 0x4e0961
mov ecx, ebx
xor eax, eax
test ecx, ecx
jbe 0x4e0978
mov edx, dword [esi + 0x1a0]
mov edx, dword [edx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, ecx
jb 0x4e0967
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x4e098b
push eax
call fcn.00489183
add esp, 4
mov dword [esi + 0x1a0], edi
mov ecx, dword [esi + 0x1a4]
lea eax, [ebx + ebx]
xor ecx, eax
and ecx, 1
xor ecx, eax
mov eax, edi
jmp 0x4e0a66
mov edi, 1
cmp ebx, edi
jb 0x4e09b7
add edi, edi
cmp edi, ebx
jbe 0x4e09b1
mov ebp, dword [esi + 0x1a0]
xor edx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x4e09e8
mov edx, 1
shl edx, cl
cmp edx, eax
jae 0x4e09ee
add edx, edx
cmp edx, edi
je 0x4e0a4d
xor ebp, ebp
test edi, edi
je 0x4e0a34
lea edx, [edi*4]
push edx
call fcn.00489377
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4e0a4d
mov eax, dword [esi + 0x1a4]
shr eax, 1
cmp eax, edi
ja 0x4e0a1c
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x4e0a34
mov ecx, dword [esi + 0x1a0]
mov edx, dword [ecx + eax*4]
mov dword [ebp + eax*4], edx
inc eax
cmp eax, edi
jb 0x4e0a22
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x4e0a47
push eax
call fcn.00489183
add esp, 4
mov dword [esi + 0x1a0], ebp
mov ecx, dword [esi + 0x1a4]
lea eax, [ebx + ebx]
xor ecx, eax
and ecx, 1
xor ecx, eax
mov eax, ebp
mov ebp, dword [esp + 0x88]
mov dword [esi + 0x1a4], ecx
xor edi, edi
cmp eax, edi
je 0x4e0afe
mov eax, dword [esi + 0x1a4]
shr eax, 1
dec eax
je 0x4e0a92
mov edx, dword [esi + 0x1a0]
lea ecx, [edx + eax*4]
dec eax
mov edx, dword [ecx - 4]
mov dword [ecx], edx
jne 0x4e0a81
mov eax, dword [esi + 0x1a0]
mov dword [eax], ebp
mov eax, dword [esp + 0x7c]
cmp eax, edi
mov dword [esp + 0x1c], vtable.ytUIEvent.0
je 0x4e0b8a
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4e0b8a
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e0b79
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4e0b74
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e0b79
mov eax, dword [esp + 0x7c]
cmp eax, edi
mov dword [esp + 0x1c], vtable.ytUIEvent.0
je 0x4e0b65
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4e0b65
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e0b54
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4e0b4f
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e0b54
mov eax, 0xff
cmp eax, edi
jne 0x4e0b65
mov eax, dword [esp + 0x7c]
push eax
call fcn.00499410
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x74
ret 4
mov eax, 0xff
cmp eax, edi
jne 0x4e0b8a
mov eax, dword [esp + 0x7c]
push eax
call fcn.00499410
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x74
ret 4