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

Disassembly:
sub esp, 0x164
push ebx
mov ebx, ecx
mov ecx, dword [0x6b95ec]
inc ecx
push ebp
mov ebp, dword [esp + 0x170]
mov dword [0x6b95ec], ecx
mov al, byte [ebx + 0x20c]
test al, al
push esi
push edi
mov edx, 0xf
je 0x4e0f90
mov al, byte [ebx + 0x22c]
test al, al
je 0x4e0f7e
cmp dword [ebp + 8], edx
je 0x4e0f90
pop edi
pop esi
pop ebp
mov eax, 0xf4241
pop ebx
add esp, 0x164
ret 8
mov al, byte [ebx + 0x20e]
test al, al
je 0x4e0fb1
cmp dword [ebp + 8], edx
je 0x4e0fb1
pop edi
pop esi
pop ebp
mov eax, 0xf4241
pop ebx
add esp, 0x164
ret 8
mov ecx, ebx
call fcn.004db4d0
test eax, eax
jne 0x4e0fce
pop edi
pop esi
pop ebp
mov eax, 0xf4241
pop ebx
add esp, 0x164
ret 8
mov edi, dword [ebp + 8]
mov esi, dword [ebx + 0x13c]
xor eax, eax
cmp edi, edx
setne al
mov dword [esp + 0x24], esi
add eax, 2
test esi, esi
mov dword [esp + 0x28], eax
je 0x4e1017
mov edi, dword [0x6b9430]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, edi
je 0x4e1007
mov dword [esp + 0x24], 0
jmp 0x4e100e
mov ecx, esi
call fcn.00521660
call fcn.004a99d0
fstp qword [esp + 0x2c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x1c]
mov ecx, edx
mov dword [esp + 0x6c], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x74], edx
mov edx, dword [ebp + 0x4c]
lea esi, [ebp + 0x20]
mov ecx, 0xa
lea edi, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0xac], eax
mov al, byte [ebp + 0x5c]
mov byte [esp + 0xb8], al
mov eax, dword [ebp + 0x60]
test eax, eax
mov dword [esp + 0xa4], ecx
mov ecx, dword [ebp + 0x54]
mov dword [esp + 0xa8], edx
mov edx, dword [ebp + 0x58]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xbc], eax
je 0x4e10af
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
jae 0x4e10af
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dl, byte [ebp + 0x64]
mov al, byte [ebp + 0x65]
mov byte [esp + 0xc0], dl
or al, byte [ebx + 0x20c]
mov byte [esp + 0xc1], al
mov eax, dword [ebp + 8]
cmp eax, 0xf
mov dword [esp + 0x5c], vtable.ytUIEvent.0
je 0x4e10e3
cmp eax, 0x13
mov byte [esp + 0x1e], 0
jne 0x4e10e8
mov byte [esp + 0x1e], 1
cmp eax, 4
je 0x4e10f6
cmp eax, 3
je 0x4e10f6
xor cl, cl
jmp 0x4e10f8
mov cl, 1
mov edi, dword [esp + 0x17c]
cmp eax, 0xf
sete byte [esp + 0x1f]
test cl, cl
mov byte [esp + 0x13], cl
mov dword [esp + 0x20], 0xf4241
mov byte [esp + 0x12], 0
jne 0x4e125a
test dword [ebx + 0x19c], 0xfffffffe
je 0x4e125a
xor esi, esi
lea ecx, [esp + 0xc4]
mov dword [esp + 0xe4], 0x3f800000
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0x3f800000
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0x3f800000
mov byte [esp + 0x108], 1
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x124], esi
mov dword [esp + 0xc4], vtable.ytUIEvent.0
call fcn.004e1fa0
test dword [ebx + 0x1a4], 0xfffffffe
mov dword [esp + 0xcc], 0x1e
mov dword [esp + 0x10c], ebp
jbe 0x4e123f
mov eax, dword [ebx + 0x1a0]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
push edi
lea eax, [esp + 0xc8]
push eax
push ebx
call dword [edx + 0xc]
cmp eax, 0xf4240
je 0x4e123a
cmp eax, 0xf4242
je 0x4e123a
mov ecx, dword [ebx + 0x1a4]
inc esi
shr ecx, 1
cmp esi, ecx
jb 0x4e1205
jmp 0x4e123f
mov byte [esp + 0x12], 1
lea ecx, [esp + 0x124]
mov dword [esp + 0xc4], vtable.ytUIEvent.0
call fcn.004039f0
mov cl, byte [esp + 0x13]
mov al, byte [esp + 0x1e]
test al, al
jne 0x4e1882
test cl, cl
je 0x4e1365
mov ecx, 0xa
lea esi, [esp + 0x34]
lea edi, [esp + 0x7c]
mov dword [esp + 0x34], 0x3f800000
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x3f800000
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x3f800000
mov byte [esp + 0x58], 1
rep movsd dword es:[edi], dword [esi]
mov ebp, ebx
lea esp, [esp]
test byte [ebp + 8], 1
je 0x4e12dd
mov ecx, ebp
call fcn.004dbf70
lea esi, [ebp + 0x1b4]
mov ecx, 0xa
lea edi, [esp + 0x12c]
lea edx, [esp + 0x12c]
rep movsd dword es:[edi], dword [esi]
push edx
lea ecx, [esp + 0x80]
call fcn.0050fce0
mov al, byte [ebp + 0x217]
test al, al
je 0x4e1319
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x5c]
jmp 0x4e1326
mov al, byte [ebp + 0x55]
test al, al
jne 0x4e1347
mov al, byte [ebp + 0xed]
test al, al
jne 0x4e1347
mov al, byte [ebp + 0x213]
test al, al
jne 0x4e13da
mov ebp, dword [ebp + 0x244]
test ebp, ebp
jne 0x4e12d0
jmp 0x4e13da
lea ecx, [esp + 0x12c]
push ecx
mov ecx, ebp
call fcn.004dfd30
push eax
lea ecx, [esp + 0x80]
call fcn.0050fce0
jmp 0x4e13da
mov al, byte [ebx + 0x217]
test al, al
je 0x4e1378
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x5c]
jmp 0x4e1385
mov al, byte [ebx + 0x55]
test al, al
jne 0x4e1389
mov al, byte [ebx + 0xed]
test al, al
je 0x4e13a5
lea eax, [esp + 0x12c]
push eax
mov ecx, ebx
call fcn.004dfd30
mov ecx, 0xa
mov esi, eax
lea edi, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
test byte [ebx + 8], 1
je 0x4e13b2
mov ecx, ebx
call fcn.004dbf70
lea esi, [ebx + 0x1b4]
mov ecx, 0xa
lea edi, [esp + 0x12c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x80]
call fcn.0050ff10
lea edx, [ebx + 0x188]
push edx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x134]
push ecx
mov ecx, ebx
call fcn.004da9d0
mov ecx, eax
call fcn.0050edb0
mov edx, dword [esp + 0x178]
cmp dword [edx + 8], 0xf
je 0x4e147d
mov al, byte [ebx + 0x20f]
test al, al
je 0x4e147d
fild dword [esp + 0x154]
fcomp dword [esp + 0xb0]
fnstsw ax
test ah, 0x41
jp 0x4e146a
fild dword [esp + 0x15c]
fcomp dword [esp + 0xb0]
fnstsw ax
test ah, 0x41
jne 0x4e146a
fild dword [esp + 0x158]
fcomp dword [esp + 0xb4]
fnstsw ax
test ah, 0x41
jp 0x4e146a
fild dword [esp + 0x160]
fcomp dword [esp + 0xb4]
fnstsw ax
test ah, 0x41
je 0x4e147d
mov al, byte [esp + 0xc0]
test al, al
jne 0x4e147d
mov byte [esp + 0xc0], 1
mov al, byte [esp + 0x13]
test al, al
jne 0x4e1874
mov al, byte [esp + 0x1f]
test al, al
jne 0x4e1874
mov al, byte [ebx + 0x211]
test al, al
je 0x4e1874
mov al, byte [esp + 0x12]
test al, al
jne 0x4e1874
mov eax, dword [ebx + 0x19c]
shr eax, 1
dec eax
mov dword [esp + 0x14], eax
js 0x4e1874
mov ecx, dword [ebx + 0x198]
mov ebp, dword [ecx + eax*4]
mov cl, byte [ebp + 0x20c]
test cl, cl
jne 0x4e1869
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0xcc], edx
mov edx, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xd4], edx
mov edx, dword [esp + 0xa4]
mov ecx, 0xa
lea esi, [esp + 0x7c]
lea edi, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0xbc]
test eax, eax
mov dword [esp + 0x10c], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x114], ecx
mov cl, byte [esp + 0xb8]
mov dword [esp + 0x118], edx
mov byte [esp + 0x120], cl
mov dword [esp + 0x124], eax
je 0x4e15a8
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
jae 0x4e15a8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov al, byte [esp + 0xc0]
mov cl, byte [esp + 0xc1]
mov byte [esp + 0x128], al
mov byte [esp + 0x129], cl
mov dword [esp + 0xc4], vtable.ytUIEvent.0
mov al, byte [ebp + 0x217]
test al, al
je 0x4e15e3
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x5c]
jmp 0x4e15f0
mov al, byte [ebp + 0x55]
test al, al
jne 0x4e15f8
mov al, byte [ebp + 0xed]
test al, al
je 0x4e1770
mov al, byte [ebp + 0x217]
test al, al
je 0x4e160c
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x5c]
jmp 0x4e1619
mov al, byte [ebp + 0x55]
test al, al
jne 0x4e1621
mov al, byte [ebp + 0xed]
test al, al
je 0x4e16dd
mov al, byte [ebp + 0x213]
test al, al
jne 0x4e16dd
mov ecx, dword [ebp + 0x244]
test ecx, ecx
je 0x4e16dd
lea eax, [esp + 0x12c]
push eax
lea eax, [esp + 0x168]
mov dword [esp + 0x130], 0x3f800000
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
mov dword [esp + 0x140], 0x3f800000
mov dword [esp + 0x144], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0x3f800000
mov byte [esp + 0x154], 1
mov edx, dword [ecx]
push eax
call dword [edx + 0x20]
mov ecx, dword [esp + 0x164]
cmp ecx, dword [esp + 0x16c]
jge 0x4e172c
mov edx, dword [esp + 0x168]
cmp edx, dword [esp + 0x170]
jge 0x4e172c
mov dword [esp + 0x34], 0x3f800000
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x3f800000
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x3f800000
mov byte [esp + 0x58], 1
jmp 0x4e175e
mov al, byte [ebp + 0x213]
test al, al
jne 0x4e173e
mov esi, dword [ebp + 0x244]
jmp 0x4e1740
xor esi, esi
test byte [esi + 8], 1
je 0x4e174d
mov ecx, esi
call fcn.004dbf70
add esi, 0x1dc
mov ecx, 0xa
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xa
lea esi, [esp + 0x34]
lea edi, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x17c]
push eax
lea ecx, [esp + 0xc8]
push ecx
mov ecx, ebp
call fcn.004e0f40
mov edi, eax
cmp edi, 0xf4240
je 0x4e17a1
cmp edi, 0xf4242
je 0x4e17a1
cmp edi, 0xf4243
jne 0x4e17ea
mov edx, dword [esp + 0x178]
mov eax, dword [edx + 0x18]
test eax, eax
mov dword [esp + 0x20], edi
je 0x4e17ba
cmp dword [eax], 0
jne 0x4e17ba
mov dword [eax], ebp
cmp edi, 0xf4243
je 0x4e1948
mov eax, dword [esp + 0xcc]
cmp eax, 2
je 0x4e17ea
cmp eax, 0xa
je 0x4e17ea
cmp eax, 0xc
je 0x4e17ea
cmp eax, 0xf
je 0x4e17ea
cmp eax, 0x10
jne 0x4e19bd
mov eax, dword [esp + 0x124]
test eax, eax
mov dword [esp + 0xc4], vtable.ytUIEvent.0
je 0x4e185a
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4e185a
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e1846
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4e1841
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e1846
mov eax, 0xff
test eax, eax
jne 0x4e185a
mov eax, dword [esp + 0x124]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x124], 0
dec eax
mov dword [esp + 0x14], eax
jns 0x4e14c2
mov ebp, dword [esp + 0x178]
mov edi, dword [esp + 0x17c]
fld dword [esp + 0x7c]
mov eax, dword [ebx + 0x1a4]
fmul dword [esp + 0xb0]
xor esi, esi
test eax, 0xfffffffe
fld dword [esp + 0x80]
fmul dword [esp + 0xb4]
faddp st(1)
fadd dword [esp + 0x84]
fstp dword [esp + 0x14]
fld dword [esp + 0x8c]
mov ecx, dword [esp + 0x14]
fmul dword [esp + 0xb4]
mov dword [esp + 0xa8], ecx
fld dword [esp + 0x88]
fmul dword [esp + 0xb0]
faddp st(1)
fadd dword [esp + 0x90]
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xac], edx
jbe 0x4e1bac
lea ebx, [ebx]
mov eax, dword [ebx + 0x1a0]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
push edi
lea eax, [esp + 0x60]
push eax
push ebx
call dword [edx + 0xc]
cmp eax, 0xf4243
je 0x4e1ae7
cmp eax, 0xf4240
je 0x4e1b9a
cmp eax, 0xf4242
je 0x4e1b9a
mov ecx, dword [ebx + 0x1a4]
inc esi
shr ecx, 1
cmp esi, ecx
jb 0x4e1900
jmp 0x4e1bac
mov esi, vtable.ytUIEvent.0
lea ecx, [esp + 0x124]
mov dword [esp + 0xc4], esi
call fcn.004039f0
xor edi, edi
lea ecx, [esp + 0xbc]
mov dword [esp + 0x124], edi
mov dword [esp + 0x5c], esi
call fcn.004039f0
mov esi, dword [esp + 0x24]
cmp esi, edi
mov dword [esp + 0xbc], edi
je 0x4e19ab
call fcn.004a99d0
fsub qword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push ecx
fstp qword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.00521950
pop edi
pop esi
pop ebp
mov eax, 0xf4243
pop ebx
add esp, 0x164
ret 8
mov eax, dword [esp + 0x124]
test eax, eax
mov ebx, vtable.ytUIEvent.0
mov dword [esp + 0xc4], ebx
je 0x4e1a2e
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4e1a2e
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e1a1a
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4e1a15
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e1a1a
mov eax, 0xff
test eax, eax
jne 0x4e1a2e
mov eax, dword [esp + 0x124]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0xbc]
test eax, eax
mov dword [esp + 0x124], 0
mov dword [esp + 0x5c], ebx
je 0x4e1aa2
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4e1aa2
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e1a8e
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4e1a89
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e1a8e
mov eax, 0xff
test eax, eax
jne 0x4e1aa2
mov eax, dword [esp + 0xbc]
push eax
call fcn.00499410
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
mov dword [esp + 0xbc], 0
je 0x4e1ad8
call fcn.004a99d0
fsub qword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push ecx
fstp qword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.00521950
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret 8
mov eax, dword [esp + 0xbc]
test eax, eax
mov dword [esp + 0x5c], vtable.ytUIEvent.0
je 0x4e1b52
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x4e1b52
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e1b3e
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x4e1b39
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e1b3e
mov eax, 0xff
test eax, eax
jne 0x4e1b52
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00499410
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
mov dword [esp + 0xbc], 0
je 0x4e1b88
call fcn.004a99d0
fsub qword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push edx
fstp qword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00521950
pop edi
pop esi
pop ebp
mov eax, 0xf4243
pop ebx
add esp, 0x164
ret 8
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4e1ba8
cmp dword [ecx], 0
jne 0x4e1ba8
mov dword [ecx], ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp eax, 0xf4240
je 0x4e1e64
cmp eax, 0xf4242
je 0x4e1bd4
mov edx, dword [ebx]
push edi
lea eax, [esp + 0x60]
push eax
push ebx
mov ecx, ebx
call dword [edx + 0x74]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp eax, 0xf4240
je 0x4e1e64
cmp eax, 0xf4242
je case.0x4e1c02.5
mov eax, dword [ebp + 8]
dec eax
cmp eax, 0xe
ja case.0x4e1c02.5
movzx ecx, byte [eax + 0x4e1f90]
jmp dword [ecx*4 + 0x4e1f7c]
mov al, byte [ebx + 0x205]
test al, al
je case.0x4e1c02.5
mov edx, dword [ebx]
lea eax, [esp + 0xa8]
push eax
mov ecx, ebx
call dword [edx + 0x4c]
cmp eax, 0xf4240
jne case.0x4e1c02.5
mov eax, dword [esp + 0xbc]
test eax, eax
mov dword [edi], ebx
mov dword [esp + 0x5c], vtable.ytUIEvent.0
je 0x4e1df6
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4e1df6
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e1de2
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4e1ddd
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e1de2
mov al, byte [ebx + 0x206]
test al, al
je 0x4e1cbe
mov edx, dword [ebx]
lea eax, [esp + 0xa8]
push eax
mov ecx, ebx
call dword [edx + 0x54]
cmp eax, 0xf4240
jne 0x4e1cbe
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0xbc]
test esi, esi
mov dword [esp + 0x5c], vtable.ytUIEvent.0
je 0x4e1d29
mov ecx, dword [esi]
and ecx, 0xff
cmp ecx, 0x80
jae 0x4e1d29
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e1d15
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4e1d10
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e1d15
mov eax, 0xff
test eax, eax
jne 0x4e1d29
mov eax, dword [esp + 0xbc]
push eax
call fcn.00499410
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
mov dword [esp + 0xbc], 0
je 0x4e1f6a
call fcn.004a99d0
fsub qword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push ecx
fstp qword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
jmp 0x4e1f63
mov al, byte [ebx + 0x205]
test al, al
je case.0x4e1c02.5
mov edx, dword [ebx]
lea eax, [esp + 0xa8]
push eax
mov ecx, ebx
call dword [edx + 0x50]
cmp eax, 0xf4240
jne case.0x4e1c02.5
mov eax, dword [esp + 0xbc]
test eax, eax
mov dword [esp + 0x5c], vtable.ytUIEvent.0
je 0x4e1df6
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4e1df6
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e1de2
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4e1ddd
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e1de2
mov eax, 0xff
test eax, eax
jne 0x4e1df6
mov eax, dword [esp + 0xbc]
push eax
call fcn.00499410
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
mov dword [esp + 0xbc], 0
je 0x4e1e2c
call fcn.004a99d0
fsub qword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push ecx
fstp qword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.00521950
pop edi
pop esi
pop ebp
mov eax, 0xf4240
pop ebx
add esp, 0x164
ret 8
mov al, byte [ebx + 0x208]
test al, al
je case.0x4e1c02.5
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebx]
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x58]
cmp eax, 0xf4240
jne case.0x4e1c02.5
mov dword [esp + 0x20], eax
mov ebp, dword [ebp + 0x18]
test ebp, ebp
je case.0x4e1c02.5
cmp dword [ebp], 0
jne case.0x4e1c02.5
mov dword [ebp], ebx
mov al, byte [esp + 0x1f]
test al, al
je 0x4e1ecb
mov al, byte [ebx + 0x211]
test al, al
je 0x4e1ecb
mov al, byte [esp + 0x12]
test al, al
jne 0x4e1ecb
mov eax, dword [ebx + 0x19c]
xor esi, esi
test eax, 0xfffffffe
jbe 0x4e1ecb
mov ebp, 0xf4240
mov eax, dword [ebx + 0x198]
mov ecx, dword [eax + esi*4]
push edi
lea edx, [esp + 0x60]
push edx
call fcn.004e0f40
cmp eax, ebp
jne 0x4e1ebe
mov dword [esp + 0x20], ebp
mov ecx, dword [ebx + 0x19c]
inc esi
shr ecx, 1
cmp esi, ecx
jb 0x4e1ea2
mov esi, dword [esp + 0xbc]
test esi, esi
mov dword [esp + 0x5c], vtable.ytUIEvent.0
je 0x4e1f34
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4e1f34
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4e1f20
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x4e1f1b
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4e1f20
mov eax, 0xff
test eax, eax
jne 0x4e1f34
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00499410
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
mov dword [esp + 0xbc], 0
je 0x4e1f6a
call fcn.004a99d0
fsub qword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push edx
fstp qword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00521950
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret 8