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

Disassembly:
sub esp, 0xe0
push ebx
push ebp
mov ebp, dword [0x6815a8]
push esi
mov esi, dword [esp + 0xf4]
push edi
mov edi, dword [esp + 0xf4]
mov ecx, dword [ebp + 0x3ea0]
mov dword [esp + 0x60], edi
mov dword [esp + 0x20], esi
mov eax, dword [edi + 0x88]
mov bl, byte [edi + 0xa0]
inc eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x5c], ecx
test bl, 0x40
je 0x470b8f
mov byte [esp + 0x13], 1
cmp eax, ecx
je 0x470b94
mov byte [esp + 0x13], 0
cmp dword [edi + 0x98], 0
je 0x470ba9
mov dword [esp + 0x48], 1
cmp eax, ecx
je 0x470bb1
mov dword [esp + 0x48], 0
and bl, 0xbf
mov dword [edi + 0x98], 0
mov byte [edi + 0xa0], bl
mov edx, edi
mov eax, dword [edi + 0x18]
mov dword [esp + 0x40], edx
test eax, eax
je 0x470be6
mov esi, eax
mov dword [esp + 0x40], esi
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x470bd1
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov ecx, dword [0x6815a8]
mov eax, dword [ecx + 0x4274]
test eax, eax
je 0x470c01
cmp dword [eax + 0x388], edi
sete cl
jmp 0x470c6a
mov ecx, dword [ecx + 0x4124]
test ecx, ecx
je 0x470c68
mov eax, dword [ecx + 0x330]
cmp eax, dword [esi + 0x32c]
jne 0x470c68
mov eax, dword [edx + 0x90]
cmp eax, dword [edi]
jne 0x470c68
mov eax, dword [ecx + 0x324]
mov ecx, dword [eax + 0x388]
test ecx, ecx
je 0x470c68
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x470c49
nop word [eax + eax]
mov ecx, eax
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x470c40
cmp ecx, edx
je 0x470d55
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x470c68
mov eax, dword [eax + 0x324]
mov ecx, dword [eax + 0x388]
test ecx, ecx
jne 0x470c33
xor cl, cl
mov eax, dword [edi + 0x10]
mov byte [esp + 0x11], cl
test eax, 0x3000
jne 0x471c4c
mov cl, byte [esi + 0xc8]
shr eax, 0xa
mov byte [esp + 0x3b], cl
test al, 1
jne 0x470c9e
mov byte [esi + 0xc8], 0
mov dword [esi + 0x160], 1
push dword [edi]
call fcn.0047c860
mov eax, dword [edi + 0x30]
add esp, 4
mov ebx, eax
mov dword [esp + 0x54], eax
test ebx, ebx
jne 0x470cc1
push edi
call fcn.0046cd10
mov ebx, dword [edi + 0x30]
add esp, 4
mov cl, byte [esp + 0x11]
mov al, byte [edi + 0xa0]
mov dl, cl
add dl, dl
mov dword [esp + 0x44], 0
and al, 0xfd
or dl, al
test dword [edi + 0x10], 0x4000
mov byte [esp + 0x1b], dl
mov byte [edi + 0xa0], dl
jne 0x470dbe
cmp dword [ebp + 0x387c], 0xffffffff
je 0x470dbe
mov esi, dword [0x6815a8]
mov byte [esp + 0x12], 1
mov eax, dword [esi + 0x3f04]
mov ecx, dword [eax + 0xfc]
mov eax, dword [eax + 0x104]
push dword [eax + ecx*4 - 4]
push 0
push str.WindowMenu
call fcn.00475ac0
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x3f28], eax
jne 0x470d5c
push 0
push str.WindowMenu
push 0xb
push eax
call fcn.0046ae40
mov dl, byte [edi + 0xa0]
add esp, 0x10
jmp 0x470d60
mov cl, 1
jmp 0x470c6a
mov dl, byte [esp + 0x1b]
mov eax, dword [0x6815a8]
mov ecx, dword [eax + 0x40cc]
cmp dword [eax + 0x40c0], ecx
jle 0x470db0
mov eax, dword [eax + 0x40c8]
lea ecx, [ecx + ecx*4]
mov esi, dword [esp + 0x1c]
cmp dword [eax + ecx*8], esi
jne 0x470db0
push ebx
push edi
call fcn.00471d20
add esp, 8
test eax, eax
je 0x470d9a
mov dword [ebx + 0x18], eax
mov dword [esp + 0x44], eax
mov dl, byte [edi + 0xa0]
mov esi, dword [esp + 0x20]
mov al, dl
shr al, 1
and al, 1
or byte [esp + 0x11], al
jmp 0x470dc7
mov al, byte [esp + 0x11]
mov esi, dword [esp + 0x20]
mov byte [esp + 0x11], al
jmp 0x470dc7
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], cl
mov eax, dword [0x6815a8]
movss xmm3, dword [edi + 0x38]
movss xmm1, dword [edi + 0x34]
movaps xmm4, xmm3
mov dword [esp + 0x4c], 0
movaps xmm2, xmm1
mov dword [esp + 0x50], 0
movss xmm0, dword [eax + 0x3894]
addss xmm0, xmm0
addss xmm4, dword [eax + 0x3c98]
movss dword [esp + 0x64], xmm1
movss dword [esp + 0x68], xmm3
addss xmm2, dword [edi + 0x3c]
addss xmm4, xmm0
movss dword [esp + 0x6c], xmm2
movss dword [esp + 0x70], xmm4
movss xmm0, dword [eax + 0x3868]
movss xmm7, dword [eax + 0x3890]
movaps xmm6, xmm0
addss xmm6, xmm1
movss xmm1, dword [eax + 0x3c98]
subss xmm2, xmm0
movaps xmm5, xmm7
addss xmm5, xmm6
subss xmm2, xmm7
test dl, 8
je 0x470e6b
subss xmm2, xmm1
movss dword [esp + 0x50], xmm3
movaps xmm0, xmm2
subss xmm0, xmm7
movss dword [esp + 0x4c], xmm0
test dl, 0x10
je 0x470e9f
cmp dword [eax + 0x387c], 0
jne 0x470e87
addss xmm1, dword [eax + 0x38a8]
addss xmm5, xmm1
jmp 0x470e9f
cmp dword [eax + 0x387c], 1
jne 0x470e9f
addss xmm1, dword [eax + 0x3890]
subss xmm2, xmm1
movaps xmm6, xmm2
cmp dword [edi + 0x24], 0
movaps xmm0, xmm3
movss dword [esp + 0x7c], xmm5
movss dword [esp + 0x80], xmm3
movss dword [esp + 0x84], xmm2
movss dword [esp + 0x88], xmm4
movss dword [esp + 0x74], xmm6
movss dword [esp + 0x78], xmm0
mov eax, dword [ebx]
mov dword [esp + 0x58], eax
jle 0x470f19
xor esi, esi
nop dword [eax]
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x1c], eax
push dword [eax + 0x88]
push ebx
call fcn.004a0330
add esp, 8
test eax, eax
jne 0x470f0f
push dword [esp + 0x1c]
push 0x400000
push ebx
call fcn.004a0220
add esp, 0xc
inc esi
cmp esi, dword [edi + 0x24]
jl 0x470ee0
mov esi, dword [esp + 0x20]
mov al, byte [esp + 0x11]
test al, al
je 0x470f31
mov eax, dword [ebp + 0x3ea0]
mov dword [edi + 0x8c], eax
mov al, byte [esp + 0x11]
cmp byte [esi + 0xc6], 0
je 0x470f41
mov ecx, 0xc
jmp 0x470f4b
xor ecx, ecx
test al, al
setne cl
add ecx, 0xa
mov eax, dword [0x6815a8]
movss xmm1, dword [esi + 0x40]
shl ecx, 4
push ecx
movss dword [esp + 0x2c], xmm1
addss xmm1, dword [esi + 0x48]
movups xmm0, xmmword [ecx + eax + 0x391c]
mov dword [esp], 0x40000000
movups xmmword [esp + 0x90], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [eax + 0x3854]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x6c]
movss dword [esp + 0x38], xmm1
push eax
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esi + 0x44]
movss dword [esp + 0x38], xmm0
addss xmm0, dword [esi + 0x4c]
movss dword [esp + 0x40], xmm0
call fcn.00489bd0
movss xmm0, dword [esi + 0x78]
add esp, 0xc
push eax
push ecx
lea eax, [esp + 0x94]
movss dword [esp], xmm0
push eax
call fcn.0046a830
mov ecx, dword [esi + 0x288]
add esp, 4
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.00489290
cmp byte [esp + 0x12], 0
je 0x4710f9
mov ecx, dword [esi + 0xfc]
mov eax, dword [esi + 0x104]
push dword [eax + ecx*4 - 4]
push 0
push str.COLLAPSE
call fcn.00475ac0
mov ecx, dword [0x6815a8]
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp dword [ecx + 0x3f28], eax
jne 0x471042
push 0
push str.COLLAPSE
push 0xb
push eax
call fcn.0046ae40
mov eax, dword [esp + 0x2c]
add esp, 0x10
push edi
lea ecx, [esp + 0x78]
push ecx
push eax
call fcn.0049adc0
add esp, 0xc
test al, al
je 0x4710db
mov eax, dword [0x6815a8]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0x3f04]
mov ecx, dword [eax + 0xfc]
mov eax, dword [eax + 0x104]
push dword [eax + ecx*4 - 4]
push 0
push str.WindowMenu
call fcn.00475ac0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x14], eax
cmp dword [ecx + 0x3f28], eax
jne 0x4710b1
push 0
push str.WindowMenu
push 0xb
push eax
call fcn.0046ae40
mov eax, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [esp + 0x24]
test byte [ecx + 0x53ec], 4
je 0x4710cd
push eax
push str.WindowMenu
push str._popup__OpenPopup___s_____0x_08X_n
call fcn.0046b040
add esp, 0xc
push 0
push dword [esp + 0x18]
call fcn.0047c1f0
add esp, 8
mov eax, dword [0x6815a8]
mov ecx, dword [eax + 0x3f40]
test ecx, ecx
je 0x4710f9
cmp ecx, dword [eax + 0x3fb4]
jne 0x4710f9
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
lea ecx, [eax - 1]
test ecx, ecx
js 0x471142
lea edx, [ecx + ecx*2]
shl edx, 4
nop dword [eax]
mov eax, dword [ebx + 8]
mov eax, dword [edx + eax + 4]
test eax, 0x400000
je 0x47113a
mov esi, dword [ebx + 8]
and eax, 0xffbfffff
mov dword [edx + esi + 4], eax
mov eax, ecx
sub edx, 0x30
mov dword [esp + 0x14], eax
sub ecx, 1
jns 0x471110
jmp 0x47113e
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov ecx, dword [ebx]
cmp ecx, eax
jle 0x471200
test byte [ebp + 0x53ec], 0x20
lea edx, [eax + 1]
je 0x471185
cmp ecx, edx
mov dword [esp + 0x1c], 0x574d55
mov eax, str.__will_sort_
cmovle eax, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
push eax
push ecx
push dword [edi]
push str._docking__In_node_0x_08X:__d_new_appearing_tabs:_s_n
call fcn.0046b040
mov eax, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [ebx]
mov edx, eax
mov dword [esp + 0x24], edx
cmp eax, ecx
jge 0x4711d8
lea esi, [eax + eax*2]
shl esi, 4
test byte [ebp + 0x53ec], 0x20
je 0x4711c2
mov eax, dword [ebx + 8]
mov ecx, dword [esi + eax + 8]
movsx eax, word [ecx + 0x36e]
push eax
push dword [ecx]
push str._docking____Tab__s_Order__d_n
call fcn.0046b040
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [ebx]
inc edx
add esi, 0x30
mov dword [esp + 0x24], edx
cmp edx, ecx
jl 0x471197
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
cmp ecx, edx
jle 0x471200
sub ecx, eax
cmp ecx, 1
jbe 0x471200
push 0x481fe0
lea eax, [eax + eax*2]
push 0x30
shl eax, 4
add eax, dword [ebx + 8]
push ecx
push eax
call fcn.005231d0
add esp, 0x10
mov eax, dword [ebp + 0x4124]
test eax, eax
je 0x47121e
mov eax, dword [eax + 0x324]
cmp dword [eax + 0x388], edi
jne 0x47121e
mov eax, dword [eax + 4]
mov dword [ebx + 0x14], eax
cmp dword [esp + 0x54], 0
jne 0x471240
push dword [edi + 0x94]
push ebx
call fcn.004a0330
add esp, 8
test eax, eax
je 0x471240
mov eax, dword [edi + 0x94]
jmp 0x47125a
mov eax, dword [ebx]
cmp eax, dword [esp + 0x58]
jle 0x471260
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 8]
add ecx, ecx
mov eax, dword [eax + ecx*8 - 0x28]
mov eax, dword [eax + 0x88]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
cmp byte [esi + 0xc6], 0
mov eax, 0x500003
jne 0x47127b
cmp byte [esp + 0x11], 0
mov ecx, 0x700003
cmovne eax, ecx
push edi
push eax
lea eax, [esp + 0x84]
push eax
push ebx
call fcn.00499e60
movups xmm0, xmmword [ebp + 0x391c]
xor edx, edx
add esp, 0x10
movups xmm1, xmmword [ebp + 0x3b2c]
mov dword [esp + 0x1c], edx
movups xmm2, xmmword [ebp + 0x3b3c]
movups xmm3, xmmword [ebp + 0x3b4c]
movups xmm4, xmmword [ebp + 0x3b5c]
movups xmm5, xmmword [ebp + 0x3b6c]
mov dword [edi + 0x74], 0
movups xmmword [esp + 0x8c], xmm0
movups xmmword [esp + 0xb0], xmm1
movups xmmword [esp + 0xc0], xmm2
movups xmmword [esp + 0xd0], xmm3
movups xmmword [esp + 0xe0], xmm4
movups xmmword [esp + 0x9c], xmm5
cmp dword [edi + 0x24], edx
jle 0x4718a0
movss xmm1, dword [0x671ffc]
nop word [eax + eax]
cmp byte [esp + 0x13], 0
mov eax, dword [edi + 0x2c]
mov edx, dword [eax + edx*4]
mov dword [esp + 0x14], edx
lea eax, [edx + 0x88]
mov dword [esp + 0x24], eax
jne 0x471333
mov ecx, dword [esp + 0x48]
cmp ecx, dword [eax]
jne 0x471351
cmp byte [edx + 0xcd], 0
mov dword [esp + 0x24], eax
je 0x471351
test dword [edx + 8], 0x100000
mov dword [esp + 0x24], eax
je 0x47185e
mov eax, dword [edx + 0x254]
inc eax
cmp eax, dword [ebp + 0x3ea0]
jge 0x47136e
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x3c], eax
je 0x47185e
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x20]
or esi, 1
test dword [edx + 8], 0x100000
mov ecx, dword [ecx + 0x370]
cmove esi, dword [edx + 0x20]
movzx eax, cl
mov edx, dword [ebx + 0xc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x28], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x2c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, dword [esp + 0x14]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x30], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x6722c0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x34], xmm0
movups xmm0, xmmword [esp + 0x28]
movups xmmword [ebp + 0x391c], xmm0
mov ecx, dword [eax + 0x374]
movzx eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x28], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x2c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x30], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x6722c0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
mov eax, dword [esp + 0x14]
movss dword [esp + 0x34], xmm0
movups xmm0, xmmword [esp + 0x28]
movups xmmword [ebp + 0x3b2c], xmm0
mov ecx, dword [eax + 0x378]
movzx eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x28], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x2c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, dword [esp + 0x14]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x30], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x6722c0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x34], xmm0
movups xmm0, xmmword [esp + 0x28]
movups xmmword [ebp + 0x3b3c], xmm0
mov ecx, dword [eax + 0x37c]
movzx eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x28], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x2c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x30], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x6722c0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x34], xmm0
movups xmm0, xmmword [esp + 0x28]
mov eax, dword [esp + 0x14]
movups xmmword [ebp + 0x3b4c], xmm0
mov ecx, dword [eax + 0x380]
movzx eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x28], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x2c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, dword [esp + 0x14]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x30], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x6722c0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x34], xmm0
movups xmm0, xmmword [esp + 0x28]
movups xmmword [ebp + 0x3b5c], xmm0
mov ecx, dword [eax + 0x384]
movzx eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x28], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x2c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6722c0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x30], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x6722c0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x34], xmm0
movups xmm0, xmmword [esp + 0x28]
mov eax, esi
push dword [esp + 0x14]
or eax, 4
test dl, 8
movups xmmword [ebp + 0x3b6c], xmm0
cmove eax, esi
mov byte [esp + 0x16], 1
mov esi, dword [esp + 0x18]
xor ecx, ecx
push eax
lea eax, [esp + 0x1a]
cmp byte [esi + 0xcd], cl
cmove eax, ecx
push eax
push dword [esi]
push ebx
call fcn.004a1970
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp byte [esp + 0x12], 0
jne 0x471801
mov eax, dword [ecx]
mov dword [edi + 0x98], eax
mov edx, dword [ecx]
cmp dword [ebx + 0x1c], edx
jne 0x47180d
mov dword [edi + 0x74], esi
mov edx, dword [ecx]
mov eax, dword [ebp + 0x3fbc]
mov dword [esi + 0x394], eax
movups xmm0, xmmword [ebp + 0x3fc0]
movups xmmword [esi + 0x398], xmm0
mov eax, dword [ebp + 0x4124]
test eax, eax
je 0x471856
cmp dword [eax + 0x324], esi
jne 0x471856
test byte [esi + 0x164], 2
movss xmm1, dword [0x671ffc]
jne 0x47185e
mov eax, dword [esp + 0x20]
mov dword [eax + 0x340], edx
jmp 0x47185e
movss xmm1, dword [0x671ffc]
mov edx, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, dword [edi + 0x24]
jl 0x471310
movups xmm0, xmmword [esp + 0x8c]
movups xmm1, xmmword [esp + 0xb0]
movups xmm2, xmmword [esp + 0xc0]
movups xmm3, xmmword [esp + 0xd0]
movups xmm4, xmmword [esp + 0xe0]
movups xmm5, xmmword [esp + 0x9c]
movups xmmword [ebp + 0x391c], xmm0
movups xmmword [ebp + 0x3b2c], xmm1
movups xmmword [ebp + 0x3b3c], xmm2
movups xmmword [ebp + 0x3b4c], xmm3
movups xmmword [ebp + 0x3b5c], xmm4
movups xmmword [ebp + 0x3b6c], xmm5
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x4718e5
cmp byte [esp + 0x11], 0
mov eax, dword [esp + 0x40]
jne 0x4718e2
cmp dword [eax + 0x74], 0
jne 0x4718e5
mov dword [eax + 0x74], ecx
mov al, byte [edi + 0xa0]
and al, 8
je 0x471909
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x471909
cmp byte [ecx + 0xcd], 0
je 0x471909
mov byte [esp + 0x13], 1
jmp 0x4719eb
test al, al
je 0x471ace
mov eax, dword [0x6815a8]
lea esi, [eax + 0x40a8]
mov ecx, dword [eax + 0x3f9c]
or ecx, 4
mov dword [eax + 0x3f9c], ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi]
cmp ecx, eax
jne 0x471959
inc ecx
test eax, eax
je 0x471947
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x47194c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00486a80
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x9c], 0
mov dword [eax + ecx*4], edx
lea eax, [esp + 0x9c]
inc dword [esi]
movss xmm0, dword [ebp + 0x391c]
mov esi, dword [0x6815a8]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [ebp + 0x3920]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [ebp + 0x3924]
lea ecx, [esi + 0x4078]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [ebp + 0x3928]
mulss xmm0, dword [0x547164]
push eax
movss dword [esp + 0x38], xmm0
movups xmm0, xmmword [esi + 0x391c]
movups xmmword [esp + 0xa4], xmm0
call fcn.00486660
movups xmm0, xmmword [esp + 0x28]
mov byte [esp + 0x13], 0
movups xmmword [esi + 0x391c], xmm0
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0xfc]
mov eax, dword [esi + 0x104]
push dword [eax + ecx*4 - 4]
push 0
push str.CLOSE
call fcn.00475ac0
mov ecx, dword [0x6815a8]
add esp, 0xc
mov dword [esp + 0x3c], eax
cmp dword [ecx + 0x3f28], eax
jne 0x471a36
push 0
push str.CLOSE
push 0xb
push eax
call fcn.0046ae40
mov eax, dword [esp + 0x4c]
add esp, 0x10
lea ecx, [esp + 0x4c]
push ecx
push eax
call fcn.0049aa90
add esp, 8
test al, al
je 0x471a77
or byte [edi + 0xa0], 0x40
cmp dword [ebx], 0
jle 0x471a77
xor esi, esi
xor edi, edi
mov eax, dword [ebx + 8]
add eax, esi
push eax
push ebx
call fcn.004a02b0
inc edi
add esp, 8
add esi, 0x30
cmp edi, dword [ebx]
jl 0x471a58
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x20]
cmp byte [esp + 0x13], 0
jne 0x471ad2
mov esi, dword [0x6815a8]
mov eax, dword [esi + 0x4078]
mov ecx, dword [esi + 0x4080]
lea edx, [eax + eax*4]
mov eax, dword [ecx + edx*4 - 0x14]
movups xmm0, xmmword [ecx + edx*4 - 0x10]
add eax, eax
movups xmmword [esi + eax*8 + 0x391c], xmm0
dec dword [esi + 0x4078]
mov edx, dword [0x6815a8]
dec dword [edx + 0x40a8]
mov eax, dword [edx + 0x40b0]
mov ecx, dword [edx + 0x40a8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x3f9c], eax
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0xfc]
mov eax, dword [esi + 0x104]
push dword [eax + ecx*4 - 4]
push 0
push str.TITLEBAR
call fcn.00475ac0
mov ecx, dword [0x6815a8]
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp dword [ecx + 0x3f28], eax
jne 0x471b19
push 0
push str.TITLEBAR
push 0xb
push eax
call fcn.0046ae40
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [ebp + 0x3f2c]
test ecx, ecx
je 0x471b33
cmp ecx, eax
je 0x471b33
cmp dword [ebp + 0x3f40], eax
jne 0x471bd5
push 0x1000
lea ecx, [esp + 0x1f]
push ecx
push 0
push eax
lea eax, [esp + 0x74]
push eax
call fcn.0049a1c0
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp dword [ebp + 0x3f2c], eax
jne 0x471b88
mov dword [ebp + 0x3fb4], eax
mov eax, dword [0x6815a8]
mov ecx, dword [eax + 0x3fb4]
cmp dword [eax + 0x3f2c], ecx
jne 0x471b79
mov byte [eax + 0x3f34], 1
cmp dword [eax + 0x3f40], ecx
jne 0x471b88
mov byte [eax + 0x3f4d], 1
cmp byte [esp + 0x1b], 0
je 0x471bd5
mov eax, dword [0x6815a8]
xorps xmm1, xmm1
movss xmm0, dword [eax + 0x36a8]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x471baf
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x44], eax
push dword [ebx + 0x14]
push ebx
call fcn.004a0330
add esp, 8
test eax, eax
je 0x471bd5
mov eax, dword [eax + 8]
test eax, eax
jne 0x471bc9
mov eax, dword [edi + 0x70]
push 0
push edi
push eax
call fcn.00481e60
add esp, 0xc
mov eax, dword [ebx + 0x18]
test eax, eax
cmove eax, dword [esp + 0x44]
test eax, eax
je 0x471c0d
push eax
push ebx
call fcn.004a0330
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x471c0d
mov eax, dword [ebx + 8]
test eax, eax
je 0x471c0d
push eax
call fcn.00474750
push 0
push dword [ebx + 8]
call fcn.00477950
add esp, 0xc
call fcn.0049b0d0
mov eax, dword [0x6815a8]
mov eax, dword [eax + 0x3f04]
dec dword [eax + 0xfc]
mov eax, dword [edi + 0x10]
shr eax, 0xa
test al, 1
jne 0x471ca1
mov al, byte [esp + 0x3b]
pop edi
mov dword [esi + 0x160], 0
mov byte [esi + 0xc8], al
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
cmp dword [edi + 0x24], 0
jle 0x471c59
mov eax, dword [edi + 0x2c]
mov esi, dword [eax]
jmp 0x471c5b
xor esi, esi
mov al, cl
mov dword [edi + 0x74], esi
add al, al
and bl, 0xfd
or al, bl
mov byte [edi + 0xa0], al
test cl, cl
je 0x471c7d
mov eax, dword [ebp + 0x3ea0]
mov dword [edi + 0x8c], eax
test esi, esi
je 0x471ca1
test cl, cl
jne 0x471c8b
cmp dword [edx + 0x74], 0
jne 0x471c8e
mov dword [edx + 0x74], esi
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x471ca1
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 0x88]
mov dword [ecx + 0x1c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret