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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x174
add dword [0x6f5264], 1
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x20c], 0
push edi
mov dword [esp + 0x14], esi
je 0x49fb35
cmp byte [esi + 0x22c], 0
je 0x49fb27
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0x13
je 0x49fb35
mov eax, 0xf4241
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x20e], 0
je 0x49fb47
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0x13
jne 0x49fb27
mov eax, esi
call fcn.0049b700
test eax, eax
je 0x49fb27
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x13c]
xor edx, edx
cmp dword [ecx + 8], 0x13
mov dword [esp + 0x18], eax
setne dl
add edx, 2
test eax, eax
mov dword [esp + 0x1c], edx
je 0x49fb7c
lea edi, [esp + 0x18]
call fcn.00499c80
mov edi, dword [ebp + 8]
push edi
lea ebx, [esp + 0x6c]
call fcn.004a0600
mov dl, byte [esi + 0x20c]
mov eax, dword [edi + 8]
or byte [esp + 0xd5], dl
cmp eax, 0x13
je 0x49fba8
cmp eax, 0x17
mov byte [esp + 0xf], 0
jne 0x49fbad
mov byte [esp + 0xf], 1
cmp eax, 4
je 0x49fbbc
cmp eax, 3
mov byte [esp + 0xc], 0
jne 0x49fbc1
mov byte [esp + 0xc], 1
cmp eax, 0x13
sete byte [esp + 0xe]
cmp byte [esp + 0xc], 0
mov dword [esp + 0x10], 0xf4241
mov byte [esp + 0xd], 0
jne 0x49fc6f
mov ebx, 0xfffffffe
test dword [esi + 0x19c], ebx
je 0x49fc6f
push edi
lea eax, [esp + 0x114]
call fcn.00499ad0
xor edi, edi
test dword [esi + 0x1a4], ebx
jbe 0x49fc53
lea esp, [esp]
mov eax, dword [esi + 0x1a0]
mov ecx, dword [eax + edi*4]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push ebx
lea eax, [esp + 0x114]
push eax
push esi
call edx
cmp eax, 0xf4240
je 0x49fc4c
cmp eax, 0xf4242
je 0x49fc4c
mov eax, dword [esi + 0x1a4]
add edi, 1
shr eax, 1
cmp edi, eax
jb 0x49fc10
jmp 0x49fc56
mov byte [esp + 0xd], 1
jmp 0x49fc56
mov ebx, dword [ebp + 0xc]
lea edi, [esp + 0x178]
mov dword [esp + method.ytUIEvent.virtual_0], vtable.ytUIEvent.0
call fcn.00401700
jmp 0x49fc72
mov ebx, dword [ebp + 0xc]
cmp byte [esp + 0xf], 0
jne 0x4a025d
cmp byte [esp + 0xc], 0
fld1
fldz
je 0x49fd63
mov ebx, dword [esp + 0x14]
fxch st(1)
fst dword [esp + 0x2c]
mov ecx, 0xa
fst dword [esp + 0x3c]
lea esi, [esp + 0x2c]
fstp dword [esp + 0x4c]
lea edi, [esp + 0x90]
mov byte [esp + 0x50], 1
fst dword [esp + 0x30]
fst dword [esp + 0x34]
fst dword [esp + 0x38]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
fstp dword [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ecx]
test byte [ebx + 8], 1
je 0x49fcdc
push ebx
call fcn.0049be90
lea esi, [ebx + 0x1b4]
mov ecx, 0xa
lea edi, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xd8]
lea eax, [esp + 0x90]
call fcn.004bace0
cmp byte [ebx + 0x217], 0
je 0x49fd35
mov edx, dword [ebx]
mov eax, dword [edx + 0x5c]
mov ecx, ebx
call eax
test al, al
jne 0x49fd44
cmp byte [ebx + 0x213], 0
jne 0x49fdd7
mov ebx, dword [ebx + 0x244]
test ebx, ebx
jne 0x49fcd0
jmp 0x49fdd7
cmp byte [ebx + 0x55], 0
jne 0x49fd44
cmp byte [ebx + 0xed], 0
jmp 0x49fd17
lea ecx, [esp + 0xd8]
push ecx
mov eax, ebx
call fcn.0049ee30
mov ecx, eax
lea eax, [esp + 0x90]
call fcn.004bace0
jmp 0x49fdd7
cmp byte [esi + 0x217], 0
fstp st(0)
fstp st(0)
je 0x49ff41
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
test al, al
je 0x49fda4
lea ecx, [esp + 0xd8]
push ecx
mov eax, esi
call fcn.0049ee30
mov ecx, 0xa
mov esi, eax
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
test byte [esi + 8], 1
je 0x49fdb0
push esi
call fcn.0049be90
add esi, 0x1b4
mov ecx, 0xa
lea edi, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xd8]
lea eax, [esp + 0x90]
call fcn.004baf00
mov eax, dword [esp + 0x14]
push eax
lea ebx, [esp + 0xdc]
lea esi, [eax + 0x188]
call fcn.0049ad80
mov edx, esi
lea ecx, [esp + 0x58]
call fcn.004b9be0
fld dword [esp + 0xc8]
mov edx, dword [ebp + 8]
fld dword [esp + 0xc4]
cmp dword [edx + 8], 0x13
je 0x49fe63
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x20f], 0
je 0x49fe63
fild dword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x49fe51
fild dword [esp + 0x60]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x49fe51
fild dword [esp + 0x5c]
fcomp st(2)
fnstsw ax
test ah, 0x41
jp 0x49fe51
fild dword [esp + 0x64]
fcomp st(2)
fnstsw ax
test ah, 0x41
je 0x49fe63
cmp byte [esp + 0xd4], 0
jne 0x49fe63
mov byte [esp + 0xd4], 1
cmp byte [esp + 0xc], 0
jne 0x4a0115
cmp byte [esp + 0xe], 0
jne 0x4a0115
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x211], 0
je 0x4a0115
cmp byte [esp + 0xd], 0
jne 0x4a0115
mov edx, ecx
mov esi, dword [edx + 0x19c]
shr esi, 1
sub esi, 1
mov dword [esp + 0x54], esi
js 0x4a0115
fstp st(1)
fstp st(0)
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x198]
mov edi, dword [ecx + esi*4]
cmp byte [edi + 0x20c], 0
mov dword [esp + 0x58], edi
jne 0x4a00fa
lea edx, [esp + 0x68]
push edx
lea ebx, [esp + 0x114]
call fcn.004a0600
cmp byte [edi + 0x217], 0
je 0x49ff57
mov eax, dword [edi]
mov edx, dword [eax + 0x5c]
mov ecx, edi
call edx
test al, al
je 0x4a0071
cmp byte [edi + 0x217], 0
je 0x49ff66
mov eax, dword [edi]
mov edx, dword [eax + 0x5c]
mov ecx, edi
call edx
test al, al
jne 0x49ff75
fld1
mov byte [esp + 0x50], 1
fst dword [esp + 0x2c]
fldz
fst dword [esp + 0x30]
fst dword [esp + 0x34]
fst dword [esp + 0x38]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
fstp dword [esp + 0x48]
fst dword [esp + 0x3c]
fstp dword [esp + 0x4c]
jmp 0x4a0057
cmp byte [esi + 0x55], 0
jne 0x49fd81
cmp byte [esi + 0xed], 0
jmp 0x49fd7f
cmp byte [edi + 0x55], 0
jne 0x49fef9
cmp byte [edi + 0xed], 0
jmp 0x49fef3
cmp byte [edi + 0x55], 0
jne 0x49ff75
cmp byte [edi + 0xed], 0
je 0x49ff0f
cmp byte [edi + 0x213], 0
jne 0x49ff0f
mov edi, dword [edi + 0x244]
test edi, edi
je 0x49ff0f
fld1
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
fst dword [esp + 0xd8]
fldz
lea ecx, [esp + 0xd8]
fst dword [esp + 0xdc]
push ecx
fst dword [esp + 0xe4]
lea edx, [esp + 0x104]
fst dword [esp + 0xe8]
mov bl, 1
fst dword [esp + 0xf0]
push edx
fst dword [esp + 0xf8]
mov ecx, edi
fstp dword [esp + 0xfc]
mov byte [esp + 0x104], bl
fst dword [esp + 0xf0]
fstp dword [esp + 0x100]
call eax
mov ecx, dword [esp + 0x100]
cmp ecx, dword [esp + 0x108]
jge 0x4a003b
mov edx, dword [esp + 0x104]
cmp edx, dword [esp + 0x10c]
jge 0x4a003b
fld1
mov byte [esp + 0x50], bl
fst dword [esp + 0x2c]
fldz
fst dword [esp + 0x30]
fst dword [esp + 0x34]
fst dword [esp + 0x38]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
fstp dword [esp + 0x48]
fst dword [esp + 0x3c]
fstp dword [esp + 0x4c]
jmp 0x4a0057
test byte [edi + 8], bl
je 0x4a0046
push edi
call fcn.0049be90
lea esi, [edi + 0x1dc]
mov ecx, 0xa
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xa
lea esi, [esp + 0x2c]
lea edi, [esp + 0x138]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x114]
push ecx
mov ecx, edi
call fcn.0049faf0
mov ebx, eax
cmp ebx, 0xf4240
je 0x4a009e
cmp ebx, 0xf4242
je 0x4a009e
cmp ebx, 0xf4243
jne 0x4a00e3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
test eax, eax
mov dword [esp + 0x10], ebx
je 0x4a00b3
cmp dword [eax], 0
jne 0x4a00b3
mov dword [eax], edi
cmp ebx, 0xf4243
je 0x4a01cc
mov eax, dword [esp + 0x118]
cmp eax, 2
je 0x4a00e3
cmp eax, 0xa
je 0x4a00e3
cmp eax, 0xc
je 0x4a00e3
cmp eax, 0x13
je 0x4a00e3
cmp eax, 0x14
jne 0x4a0234
lea edi, [esp + 0x178]
mov dword [esp + method.ytUIEvent.virtual_0], vtable.ytUIEvent.0
call fcn.00401700
sub esi, 1
mov dword [esp + 0x54], esi
jns 0x49feb0
fld dword [esp + 0xc8]
fld dword [esp + 0xc4]
mov esi, dword [esp + 0x14]
mov ebx, dword [ebp + 0xc]
fld dword [esp + 0x90]
xor edi, edi
test dword [esi + 0x1a4], 0xfffffffe
fmul st(1)
fld dword [esp + 0x94]
fmul st(3)
faddp st(1)
fadd dword [esp + 0x98]
fstp dword [esp + 0x58]
mov eax, dword [esp + 0x58]
mov dword [esp + 0xbc], eax
fmul dword [esp + 0x9c]
fld dword [esp + 0xa0]
fmulp st(2)
faddp st(1)
fadd dword [esp + 0xa4]
fstp dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc0], ecx
jbe 0x4a0326
mov edx, dword [esi + 0x1a0]
mov ecx, dword [edx + edi*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push ebx
lea edx, [esp + 0x6c]
push edx
push esi
call eax
cmp eax, 0xf4243
je 0x4a0270
cmp eax, 0xf4240
je 0x4a0311
cmp eax, 0xf4242
je 0x4a0311
mov ecx, dword [esi + 0x1a4]
add edi, 1
shr ecx, 1
cmp edi, ecx
jb 0x4a0180
jmp 0x4a0326
mov esi, vtable.ytUIEvent.0
lea edi, [esp + 0x178]
mov dword [esp + 0x110], esi
call fcn.00401700
xor ebx, ebx
lea edi, [esp + 0xd0]
mov dword [esp + 0x178], ebx
mov dword [esp + 0x68], esi
call fcn.00401700
mov esi, dword [esp + 0x18]
test esi, esi
mov dword [esp + 0xd0], ebx
je 0x4a0226
call fcn.00495a20
fsub qword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.004d3ce0
mov eax, 0xf4243
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x110]
call fcn.00499c00
lea ecx, [esp + 0x68]
call fcn.00499c00
lea esi, [esp + 0x18]
call fcn.00499ce0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
fld dword [esp + 0xc8]
fld dword [esp + 0xc4]
jmp 0x4a011c
mov eax, dword [esp + 0xd0]
test eax, eax
mov dword [esp + 0x68], vtable.ytUIEvent.0
je 0x4a02d2
movzx edx, byte [eax]
cmp edx, 0x80
mov esi, eax
jae 0x4a02d2
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4a02be
movzx eax, byte [esi]
cmp eax, 0x80
jae 0x4a02b9
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4a02be
mov eax, 0xff
test eax, eax
jne 0x4a02d2
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.0045da90
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
mov dword [esp + 0xd0], 0
je 0x4a0226
call fcn.00495a20
fsub qword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.004d3ce0
mov eax, 0xf4243
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x20]
test ecx, ecx
je 0x4a0322
cmp dword [ecx], 0
jne 0x4a0322
mov dword [ecx], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp eax, 0xf4240
je 0x4a04c5
cmp eax, 0xf4242
je 0x4a0350
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
push ebx
lea ecx, [esp + 0x6c]
push ecx
push esi
mov ecx, esi
call edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp eax, 0xf4240
je 0x4a04c5
cmp eax, 0xf4242
je case.0x4a0383.4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xffffffff
cmp eax, 0x12
ja case.0x4a0383.4
movzx ecx, byte [eax + 0x4a05e4]
jmp dword [ecx*4 + 0x4a05d0]
cmp byte [esi + 0x205], 0
je case.0x4a0383.4
mov edx, dword [esi]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0xbc]
push eax
mov ecx, esi
call edx
cmp eax, 0xf4240
jne case.0x4a0383.4
lea edi, [esp + 0xd0]
mov dword [ebx], esi
mov dword [esp + 0x68], vtable.ytUIEvent.0
call fcn.00401700
cmp dword [esp + 0x18], 0
mov dword [esp + 0xd0], 0
je 0x4a03f7
call fcn.00495a20
fsub qword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub esp, 8
fstp qword [esp]
call fcn.004d3ce0
mov eax, 0xf4240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x206], 0
je 0x4a042a
mov eax, dword [esi]
mov edx, dword [eax + 0x54]
lea ecx, [esp + 0xbc]
push ecx
mov ecx, esi
call edx
cmp eax, 0xf4240
jne 0x4a042a
mov dword [esp + 0x10], eax
lea edi, [esp + 0xd0]
mov dword [esp + 0x68], vtable.ytUIEvent.0
call fcn.00401700
jmp 0x4a0593
cmp byte [esi + 0x205], 0
je case.0x4a0383.4
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
lea ecx, [esp + 0xbc]
push ecx
mov ecx, esi
call edx
cmp eax, 0xf4240
jne case.0x4a0383.4
lea edi, [esp + 0xd0]
mov dword [esp + 0x68], vtable.ytUIEvent.0
call fcn.00401700
lea esi, [esp + 0x18]
mov dword [esp + 0xd0], 0
call fcn.00499ce0
mov eax, 0xf4240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x208], 0
je case.0x4a0383.4
mov eax, dword [esi]
fld qword [esp + 0x78]
mov edx, dword [eax + 0x58]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call edx
cmp eax, 0xf4240
jne case.0x4a0383.4
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
test eax, eax
je case.0x4a0383.4
cmp dword [eax], 0
jne case.0x4a0383.4
mov dword [eax], esi
cmp byte [esp + 0xe], 0
je 0x4a0530
cmp byte [esi + 0x211], 0
je 0x4a0530
cmp byte [esp + 0xd], 0
jne 0x4a0530
xor edi, edi
test dword [esi + 0x19c], 0xfffffffe
jbe 0x4a0530
jmp 0x4a0500
mov ecx, dword [esi + 0x198]
lea eax, [ecx + edi*4]
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x6c]
push edx
call fcn.0049faf0
cmp eax, 0xf4240
jne 0x4a0521
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x19c]
add edi, 1
shr eax, 1
cmp edi, eax
jb 0x4a0500
mov eax, dword [esp + 0xd0]
test eax, eax
mov dword [esp + 0x68], vtable.ytUIEvent.0
je 0x4a0593
movzx ecx, byte [eax]
cmp ecx, 0x80
mov esi, eax
jae 0x4a0593
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4a057f
movzx edx, byte [esi]
cmp edx, 0x80
jae 0x4a057a
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4a057f
mov eax, 0xff
test eax, eax
jne 0x4a0593
mov eax, dword [esp + 0xd0]
push eax
call fcn.0045da90
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
mov dword [esp + 0xd0], 0
je 0x4a05c0
call fcn.00495a20
fsub qword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.004d3ce0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8