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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4901c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x38], edx
push esi
mov esi, dword [0x4927a0]
push edi
mov ecx, dword [ebx + 0x88]
mov al, byte [ebx + 0xa0]
inc ecx
mov edi, dword [esi + 0x3ea0]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x94], edi
test al, 0x40
je 0x41cd3c
mov byte [ebp - 0xa], 1
cmp ecx, edi
je 0x41cd40
mov byte [ebp - 0xa], 0
cmp dword [ebx + 0x98], 0
je 0x41cd54
mov dword [ebp - 0x4c], 1
cmp ecx, edi
je 0x41cd5b
mov dword [ebp - 0x4c], 0
and al, 0xbf
mov dword [ebx + 0x98], 0
mov byte [ebp - 0x15], al
xor cl, cl
mov byte [ebx + 0xa0], al
mov edi, ebx
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], edi
test eax, eax
je 0x41cd93
mov edx, eax
mov dword [ebp - 0x3c], edx
mov eax, dword [edx + 0x18]
test eax, eax
jne 0x41cd81
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov eax, dword [esi + 0x4270]
mov dword [ebp - 0x40], 1
test eax, eax
je 0x41cdaf
cmp dword [eax + 0x388], ebx
sete cl
jmp 0x41cdd6
mov eax, dword [esi + 0x4120]
test eax, eax
je 0x41cdd9
mov eax, dword [eax + 0x330]
cmp eax, dword [edx + 0x32c]
jne 0x41cdd9
mov eax, dword [edi + 0x90]
cmp eax, dword [ebx]
movzx ecx, cl
cmove ecx, dword [ebp - 0x40]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebx + 0x10]
shr eax, 0xd
test al, 1
jne 0x41e013
mov eax, dword [ebx + 0x10]
shr eax, 0xc
test al, 1
jne 0x41e013
mov al, byte [edx + 0xc8]
mov byte [ebp - 0x15], al
mov eax, dword [ebx + 0x10]
shr eax, 0xa
test al, 1
jne 0x41ce19
mov byte [edx + 0xc8], 0
mov dword [edx + 0x160], 1
mov ecx, dword [ebx]
mov edi, dword [esi + 0x3f04]
mov dword [ebp - 8], ecx
cmp dword [esi + 0x3f28], ecx
jne 0x41ce3c
push ecx
push 0
mov edx, 0xd
call fcn.004222f0
add esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 0xfc]
call fcn.004224f0
mov eax, dword [ebx + 0x30]
mov edi, eax
mov dword [ebp - 0x8c], eax
test edi, edi
jne 0x41ce64
mov ecx, ebx
call fcn.0041e090
mov edi, dword [ebx + 0x30]
mov cl, byte [ebx + 0xa0]
mov al, byte [ebp - 0x30]
and cl, 0xfd
add al, al
mov dword [ebp - 0x48], 0
or cl, al
test dword [ebx + 0x10], 0x4000
mov byte [ebp - 0xb], cl
mov byte [ebx + 0xa0], cl
jne 0x41cf4c
cmp dword [esi + 0x387c], 0xffffffff
je 0x41cf4c
mov eax, dword [0x4927a0]
xor edx, edx
mov byte [ebp - 9], 1
mov eax, dword [eax + 0x3f04]
mov ecx, dword [eax + 0xfc]
mov eax, dword [eax + 0x104]
push dword [eax + ecx*4 - 4]
mov ecx, str.WindowMenu
call fcn.00403dc0
mov edx, dword [0x4927a0]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [edx + 0x3f28], eax
jne 0x41cf01
push ecx
push str.WindowMenu
mov edx, 0xb
mov ecx, eax
call fcn.004222f0
mov al, byte [ebx + 0xa0]
add esp, 8
mov edx, dword [0x4927a0]
mov byte [ebp - 0xb], al
mov eax, dword [edx + 0x40c8]
cmp dword [edx + 0x40bc], eax
jle 0x41cf47
mov esi, dword [ebp - 8]
lea ecx, [eax + eax*8]
mov eax, dword [edx + 0x40c4]
cmp dword [eax + ecx*4], esi
mov esi, dword [ebp - 0x10]
jne 0x41cf47
mov edx, edi
mov ecx, ebx
call fcn.0041cb30
test eax, eax
je 0x41cf36
mov dword [edi + 0x18], eax
mov dword [ebp - 0x48], eax
mov cl, byte [ebx + 0xa0]
mov al, cl
shr al, 1
and al, 1
or byte [ebp - 0x30], al
jmp 0x41cf50
mov cl, byte [ebp - 0xb]
jmp 0x41cf56
mov byte [ebp - 9], 0
mov edx, dword [0x4927a0]
movss xmm3, dword [edx + 0x3c98]
movss xmm5, dword [ebx + 0x38]
movaps xmm0, xmm3
movss xmm1, dword [edx + 0x3894]
addss xmm0, xmm5
movss xmm4, dword [ebx + 0x34]
addss xmm1, xmm1
movss dword [ebp - 0x2c], xmm4
movaps xmm2, xmm4
movss dword [ebp - 0x28], xmm5
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
addss xmm1, xmm0
addss xmm2, dword [ebx + 0x3c]
movss dword [ebp - 0x20], xmm1
movss xmm1, dword [edx + 0x3890]
movss dword [ebp - 0x24], xmm2
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [ebp - 0xa4], xmm0
movss xmm0, dword [edx + 0x3868]
addss xmm4, xmm0
subss xmm2, xmm0
movaps xmm6, xmm4
addss xmm6, xmm1
subss xmm2, xmm1
movss dword [ebp - 0x2c], xmm6
movss dword [ebp - 0x24], xmm2
test cl, 8
je 0x41d00c
subss xmm2, xmm3
movss dword [ebp - 0x84], xmm5
movaps xmm0, xmm2
movss dword [ebp - 0x24], xmm2
subss xmm0, xmm1
movss dword [ebp - 0x88], xmm0
test cl, 0x10
je 0x41d046
cmp dword [edx + 0x387c], 0
jne 0x41d02d
addss xmm3, dword [edx + 0x38a8]
addss xmm3, xmm6
movss dword [ebp - 0x2c], xmm3
jmp 0x41d046
cmp dword [edx + 0x387c], 1
jne 0x41d046
addss xmm3, xmm1
movaps xmm4, xmm2
subss xmm4, xmm3
movss dword [ebp - 0x24], xmm4
cmp dword [ebx + 0x24], 0
movups xmm0, xmmword [ebp - 0x2c]
mov eax, dword [edi]
movss dword [ebp - 0xac], xmm4
movups xmmword [ebp - 0xbc], xmm0
mov dword [ebp - 0x90], eax
movss dword [ebp - 0xa8], xmm5
mov dword [ebp - 0x1c], 0
jle 0x41d153
xor ecx, ecx
mov dword [ebp - 8], 0x400000
mov dword [ebp - 0x34], ecx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x14], ecx
cmp dword [ecx + 0x88], 0
je 0x41d0c6
xor ecx, ecx
cmp dword [edi], ecx
jle 0x41d0c3
mov eax, dword [edi + 8]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + 0x88]
cmp dword [eax], esi
mov esi, dword [ebp - 0x10]
mov edx, dword [0x4927a0]
je 0x41d13a
inc ecx
add eax, 0x2c
cmp ecx, dword [edi]
jl 0x41d0a1
mov ecx, dword [ebp - 0x14]
or eax, 0xffffffff
mov dword [ebp - 0x64], 0
cmp byte [ecx + 0xcd], 0
xorps xmm0, xmm0
mov word [ebp - 0x5a], ax
mov word [ebp - 0x5c], ax
mov eax, dword [ecx + 0x88]
mov dword [ebp - 0x80], eax
mov eax, 0x500000
cmovne eax, dword [ebp - 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [edi + 0x20]
movlpd qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
jne 0x41d126
mov eax, dword [edx + 0x3ea0]
dec eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x78], ecx
push eax
mov ecx, edi
call fcn.0043f860
mov edx, dword [0x4927a0]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
inc eax
add ecx, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], ecx
cmp eax, dword [ebx + 0x24]
jl 0x41d086
mov eax, dword [ebp - 0x30]
test al, al
je 0x41d169
mov eax, dword [esi + 0x3ea0]
mov dword [ebx + 0x8c], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
cmp byte [ecx + 0xc6], 0
je 0x41d17c
mov eax, 0xc
jmp 0x41d18e
test al, al
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
setne al
add eax, 0xa
movss xmm0, dword [0x485bc0]
add eax, eax
xorps xmm2, xmm2
movups xmm4, xmmword [edx + eax*8 + 0x391c]
comiss xmm2, xmm4
movaps xmm3, xmm4
shufps xmm3, xmm4, 0xff
mulss xmm3, dword [edx + 0x3854]
movups xmmword [ebp - 0x2c], xmm4
jbe 0x41d1c0
xorps xmm1, xmm1
jmp 0x41d1c7
movaps xmm1, xmm0
minss xmm1, xmm4
movss xmm4, dword [0x485c54]
movss xmm5, dword [0x485b7c]
movss xmm6, dword [ebp - 0x28]
comiss xmm2, xmm6
mulss xmm1, xmm4
addss xmm1, xmm5
cvttss2si edx, xmm1
jbe 0x41d1f2
xorps xmm1, xmm1
jmp 0x41d1f9
movaps xmm1, xmm0
minss xmm1, xmm6
movss xmm6, dword [ebp - 0x24]
mulss xmm1, xmm4
addss xmm1, xmm5
cvttss2si eax, xmm1
shl eax, 8
or edx, eax
comiss xmm2, xmm6
jbe 0x41d219
xorps xmm1, xmm1
jmp 0x41d220
movaps xmm1, xmm0
minss xmm1, xmm6
mulss xmm1, xmm4
addss xmm1, xmm5
cvttss2si eax, xmm1
shl eax, 0x10
or edx, eax
comiss xmm2, xmm3
jbe 0x41d23b
xorps xmm0, xmm0
jmp 0x41d23f
minss xmm0, xmm3
movss xmm1, dword [ecx + 0x40]
movss xmm2, dword [0x485bf0]
mulss xmm0, xmm4
movss xmm3, dword [ecx + 0x44]
addss xmm0, xmm5
cvttss2si eax, xmm0
movaps xmm0, xmm1
addss xmm1, dword [ecx + 0x48]
shl eax, 0x18
addss xmm0, xmm2
or eax, edx
mov dword [ebp - 8], eax
subss xmm1, xmm2
comiss xmm0, dword [ebp - 0xa4]
movss xmm0, dword [ebp - 0x9c]
setae al
comiss xmm0, xmm1
movaps xmm0, xmm3
addss xmm3, dword [ecx + 0x4c]
addss xmm0, xmm2
setae dh
mov byte [ebp - 0xb], dh
subss xmm3, xmm2
comiss xmm0, dword [ebp - 0xa0]
movss xmm0, dword [ebp - 0x98]
setae dl
comiss xmm0, xmm3
setae ah
test dl, dl
je 0x41d2c9
test al, al
je 0x41d2c9
mov dword [ebp - 0x34], 0x10
jmp 0x41d2d4
mov dword [ebp - 0x34], 0
test dl, dl
je 0x41d2df
mov dword [ebp - 0x14], 0x20
test dh, dh
jne 0x41d2e6
mov dword [ebp - 0x14], 0
test ah, ah
je 0x41d2f5
test al, al
je 0x41d2f5
mov edx, 0x40
jmp 0x41d2fb
xor edx, edx
test ah, ah
je 0x41d306
cmp byte [ebp - 0xb], 0
mov eax, 0x180
jne 0x41d30b
mov eax, 0x100
or eax, dword [ebp - 0x34]
movss xmm0, dword [ecx + 0x78]
or eax, edx
or eax, dword [ebp - 0x14]
push eax
push ecx
mov ecx, dword [ecx + 0x288]
lea eax, [ebp - 0x9c]
movss dword [esp], xmm0
push dword [ebp - 8]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0042d7f0
cmp byte [ebp - 9], 0
je 0x41d41a
mov eax, dword [ebp - 0x38]
xor edx, edx
mov ecx, dword [eax + 0xfc]
mov eax, dword [eax + 0x104]
push dword [eax + ecx*4 - 4]
mov ecx, str.COLLAPSE
call fcn.00403dc0
mov ecx, dword [0x4927a0]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ecx + 0x3f28], eax
jne 0x41d390
push ecx
push str.COLLAPSE
mov edx, 0xb
mov ecx, eax
call fcn.004222f0
mov eax, dword [ebp - 8]
add esp, 8
push ebx
lea edx, [ebp - 0xac]
mov ecx, eax
call fcn.00439390
add esp, 4
test al, al
je 0x41d3fd
mov esi, dword [0x4927a0]
mov ecx, str.WindowMenu
mov eax, dword [esi + 0x3f04]
mov edx, dword [eax + 0xfc]
mov eax, dword [eax + 0x104]
push dword [eax + edx*4 - 4]
xor edx, edx
call fcn.00403dc0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [esi + 0x3f28], eax
jne 0x41d3f3
push ecx
push str.WindowMenu
mov edx, 0xb
mov ecx, eax
call fcn.004222f0
mov eax, dword [ebp - 8]
add esp, 8
mov ecx, eax
call fcn.00412970
mov esi, dword [ebp - 0x10]
mov eax, dword [0x4927a0]
mov ecx, dword [eax + 0x3f40]
test ecx, ecx
je 0x41d41a
cmp ecx, dword [eax + 0x3fb0]
jne 0x41d41a
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
lea ecx, [eax - 1]
test ecx, ecx
js 0x41d45f
imul edx, ecx, 0x2c
nop dword [eax]
mov eax, dword [edi + 8]
mov eax, dword [edx + eax + 4]
test eax, 0x400000
je 0x41d459
mov esi, dword [edi + 8]
and eax, 0xffbfffff
mov dword [edx + esi + 4], eax
mov eax, ecx
sub edx, 0x2c
mov dword [ebp - 0x14], eax
sub ecx, 1
jns 0x41d430
jmp 0x41d45c
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov ecx, dword [edi]
cmp ecx, eax
jle 0x41d48c
inc eax
cmp ecx, eax
jle 0x41d48c
mov eax, dword [ebp - 0x14]
sub ecx, eax
cmp ecx, 1
jbe 0x41d48c
imul eax, eax, 0x2c
push 0x41cad0
push 0x2c
push ecx
add eax, dword [edi + 8]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
mov eax, dword [esi + 0x4120]
test eax, eax
je 0x41d4aa
mov eax, dword [eax + 0x324]
cmp dword [eax + 0x388], ebx
jne 0x41d4aa
mov eax, dword [eax + 4]
mov dword [edi + 0x14], eax
cmp dword [ebp - 0x8c], 0
jne 0x41d4e9
cmp dword [ebx + 0x94], 0
je 0x41d4e9
mov edx, dword [edi]
xor ecx, ecx
test edx, edx
jle 0x41d4e9
mov eax, dword [edi + 8]
nop word [eax + eax]
mov esi, dword [ebx + 0x94]
cmp dword [eax], esi
mov esi, dword [ebp - 0x10]
je 0x41dae3
inc ecx
add eax, 0x2c
cmp ecx, edx
jl 0x41d4d0
mov eax, dword [edi]
cmp eax, dword [ebp - 0x90]
jle 0x41d509
imul ecx, eax, 0x2c
mov eax, dword [edi + 8]
mov eax, dword [ecx + eax - 0x24]
mov eax, dword [eax + 0x88]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x38]
mov ecx, 0x500003
cmp byte [eax + 0xc6], 0
jne 0x41d526
cmp byte [ebp - 0x30], 0
mov eax, 0x700003
cmovne ecx, eax
push ebx
push ecx
lea edx, [ebp - 0xbc]
mov ecx, edi
call fcn.0043c940
movups xmm0, xmmword [esi + 0x391c]
add esp, 8
cmp dword [ebx + 0x24], 0
movups xmm1, xmmword [esi + 0x3b2c]
mov dword [ebp - 0x34], 0
movups xmm2, xmmword [esi + 0x3b3c]
movups xmm3, xmmword [esi + 0x3b4c]
movups xmm4, xmmword [esi + 0x3b5c]
movups xmm5, xmmword [esi + 0x3b6c]
mov dword [ebx + 0x74], 0
movups xmmword [ebp - 0xd0], xmm0
movups xmmword [ebp - 0xe0], xmm1
movups xmmword [ebp - 0xf0], xmm2
movups xmmword [ebp - 0x100], xmm3
movups xmmword [ebp - 0x110], xmm4
movups xmmword [ebp - 0x68], xmm5
jle 0x41db40
movss xmm1, dword [0x485b44]
xor edx, edx
mov dword [ebp - 8], edx
nop
cmp byte [ebp - 0xa], 0
mov eax, dword [ebx + 0x2c]
mov edx, dword [edx + eax]
mov dword [ebp - 0x1c], edx
lea eax, [edx + 0x88]
mov dword [ebp - 0x14], eax
jne 0x41d5cf
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [eax]
jne 0x41d5eb
cmp byte [edx + 0xcd], 0
mov dword [ebp - 0x14], eax
je 0x41d5eb
test dword [edx + 8], 0x100000
mov dword [ebp - 0x14], eax
je 0x41db00
mov eax, dword [edx + 0x254]
inc eax
cmp eax, dword [esi + 0x3ea0]
jge 0x41d609
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x44], eax
je 0x41db00
mov ecx, dword [ebp - 0x1c]
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 [edi + 0xc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x2c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x28], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, dword [ebp - 0x10]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x24], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x486090]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x20], xmm0
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [eax + 0x391c], xmm0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x374]
movzx eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x2c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x28], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x24], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x486090]
cvtpd2ps xmm0, xmm0
mov eax, dword [ebp - 0x10]
mulss xmm0, xmm1
movss dword [ebp - 0x20], xmm0
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [eax + 0x3b2c], xmm0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x378]
movzx eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x2c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x28], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, dword [ebp - 0x10]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x24], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x486090]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x20], xmm0
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [eax + 0x3b3c], xmm0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x37c]
movzx eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x2c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x28], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x24], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x486090]
mov eax, dword [ebp - 0x10]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x20], xmm0
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [eax + 0x3b4c], xmm0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x380]
movzx eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x2c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x28], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, dword [ebp - 0x10]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x24], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x486090]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x20], xmm0
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [eax + 0x3b5c], xmm0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x384]
movzx eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x2c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x486090]
mov eax, ecx
shr eax, 0x10
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x28], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
shr ecx, 0x18
addsd xmm0, qword [eax*8 + 0x486090]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x24], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov eax, dword [ebp - 0x10]
shr ecx, 0x1f
push dword [ebp - 0x1c]
addsd xmm0, qword [ecx*8 + 0x486090]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x20], xmm0
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [eax + 0x3b6c], xmm0
mov eax, esi
mov byte [ebp - 9], 1
or eax, 4
test dl, 8
cmove eax, esi
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
push eax
lea eax, [ebp - 9]
cmp byte [esi + 0xcd], cl
mov edx, dword [esi]
cmove eax, ecx
mov ecx, edi
push eax
call fcn.0043dfd0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
cmp byte [ebp - 9], 0
jne 0x41da85
mov eax, dword [ecx]
mov dword [ebx + 0x98], eax
mov eax, dword [edi + 0x1c]
cmp eax, dword [ecx]
jne 0x41da8f
mov dword [ebx + 0x74], esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x3fb8]
mov dword [esi + 0x394], eax
movups xmm0, xmmword [ecx + 0x3fbc]
movups xmmword [esi + 0x398], xmm0
mov eax, dword [ecx + 0x4120]
test eax, eax
je 0x41daf6
cmp dword [eax + 0x324], esi
jne 0x41daf6
test byte [esi + 0x164], 2
movss xmm1, dword [0x485b44]
jne 0x41dafe
mov ecx, dword [ebp - 0x38]
mov eax, dword [esi + 0x88]
mov esi, dword [ebp - 0x10]
mov dword [ecx + 0x340], eax
jmp 0x41db00
test eax, eax
je 0x41d4e9
mov eax, dword [ebx + 0x94]
jmp 0x41d503
movss xmm1, dword [0x485b44]
mov esi, ecx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
inc eax
add edx, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 8], edx
cmp eax, dword [ebx + 0x24]
jl 0x41d5b0
movups xmm0, xmmword [ebp - 0xd0]
movups xmm1, xmmword [ebp - 0xe0]
movups xmm2, xmmword [ebp - 0xf0]
movups xmm3, xmmword [ebp - 0x100]
movups xmm4, xmmword [ebp - 0x110]
movups xmm5, xmmword [ebp - 0x68]
movups xmmword [esi + 0x391c], xmm0
movups xmmword [esi + 0x3b2c], xmm1
movups xmmword [esi + 0x3b3c], xmm2
movups xmmword [esi + 0x3b4c], xmm3
movups xmmword [esi + 0x3b5c], xmm4
movups xmmword [esi + 0x3b6c], xmm5
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x41db83
cmp byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x3c]
jne 0x41db80
cmp dword [eax + 0x74], 0
jne 0x41db83
mov dword [eax + 0x74], ecx
mov al, byte [ebx + 0xa0]
and al, 8
je 0x41dba6
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x41dba6
cmp byte [ecx + 0xcd], 0
je 0x41dba6
mov byte [ebp - 0xa], 1
jmp 0x41dc4a
test al, al
je 0x41dd5b
mov ecx, dword [0x4927a0]
mov eax, dword [ecx + 0x3f98]
or eax, 4
mov dword [ecx + 0x3f98], eax
add ecx, 0x40a4
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
call fcn.004224f0
movss xmm0, dword [esi + 0x391c]
lea eax, [ebp - 0x68]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [esi + 0x3920]
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [esi + 0x3924]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [esi + 0x3928]
mulss xmm0, dword [0x485b74]
mov esi, dword [0x4927a0]
push eax
mov dword [ebp - 0x68], 0
movss dword [ebp - 0x20], xmm0
movups xmm0, xmmword [esi + 0x391c]
lea ecx, [esi + 0x4074]
movups xmmword [ebp - 0x64], xmm0
call fcn.00422bb0
movups xmm0, xmmword [ebp - 0x2c]
mov byte [ebp - 0xa], 0
movups xmmword [esi + 0x391c], xmm0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x38]
xor edx, edx
mov ecx, dword [eax + 0xfc]
mov eax, dword [eax + 0x104]
push dword [eax + ecx*4 - 4]
mov ecx, str.CLOSE
call fcn.00403dc0
mov ecx, dword [0x4927a0]
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ecx + 0x3f28], eax
jne 0x41dc95
push ecx
push str.CLOSE
mov edx, 0xb
mov ecx, eax
call fcn.004222f0
mov eax, dword [ebp - 0x44]
add esp, 8
lea edx, [ebp - 0x88]
mov ecx, eax
call fcn.00439040
test al, al
je 0x41dd05
or byte [ebx + 0xa0], 0x40
xor edx, edx
cmp dword [edi], edx
jle 0x41dd05
xor eax, eax
mov dword [ebp - 0x3c], eax
nop dword [eax + eax]
mov ecx, dword [edi + 8]
add ecx, eax
test byte [ecx + 4], 1
jne 0x41dcf0
mov byte [ecx + 0x28], 1
mov eax, dword [edi + 0x1c]
cmp eax, dword [ecx]
mov eax, dword [ebp - 0x3c]
jne 0x41dcfa
mov dword [ecx + 0xc], 0xffffffff
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
jmp 0x41dcfa
mov ecx, dword [ecx]
cmp dword [edi + 0x1c], ecx
je 0x41dcfa
mov dword [edi + 0x18], ecx
inc edx
add eax, 0x2c
mov dword [ebp - 0x3c], eax
cmp edx, dword [edi]
jl 0x41dcc0
cmp byte [ebp - 0xa], 0
jne 0x41dd5b
mov ecx, dword [0x4927a0]
mov eax, dword [ecx + 0x4074]
mov ecx, dword [ecx + 0x407c]
lea edx, [eax + eax*4]
mov eax, dword [ecx + edx*4 - 0x14]
movups xmm0, xmmword [ecx + edx*4 - 0x10]
mov edx, dword [0x4927a0]
add eax, eax
movups xmmword [edx + eax*8 + 0x391c], xmm0
dec dword [edx + 0x4074]
dec dword [edx + 0x40a4]
mov eax, dword [edx + 0x40ac]
mov ecx, dword [edx + 0x40a4]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x3f98], eax
mov eax, dword [ebp - 0x38]
xor edx, edx
mov ecx, dword [eax + 0xfc]
mov eax, dword [eax + 0x104]
push dword [eax + ecx*4 - 4]
mov ecx, str.TITLEBAR
call fcn.00403dc0
mov ecx, dword [0x4927a0]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ecx + 0x3f28], eax
jne 0x41dda6
push ecx
push str.TITLEBAR
mov edx, 0xb
mov ecx, eax
call fcn.004222f0
mov eax, dword [ebp - 8]
add esp, 8
mov ecx, dword [esi + 0x3f2c]
test ecx, ecx
je 0x41ddc0
cmp ecx, eax
je 0x41ddc0
cmp dword [esi + 0x3f40], eax
jne 0x41df81
push 0x1000
lea ecx, [ebp - 0xa]
mov edx, eax
push ecx
push 0
lea ecx, [ebp - 0xa4]
call fcn.00438740
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [0x4927a0]
cmp dword [esi + 0x3f2c], eax
jne 0x41de16
mov dword [esi + 0x3fb0], eax
mov eax, dword [edx + 0x3fb0]
cmp dword [edx + 0x3f2c], eax
jne 0x41de07
mov byte [edx + 0x3f34], 1
cmp dword [edx + 0x3f40], eax
jne 0x41de16
mov byte [edx + 0x3f4d], 1
cmp byte [ebp - 0xa], 0
je 0x41df81
movss xmm0, dword [edx + 0x36a8]
xorps xmm2, xmm2
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x41de3a
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x48], eax
cmp dword [edi + 0x14], 0
je 0x41df81
mov esi, dword [edi]
xor ecx, ecx
test esi, esi
jle 0x41df81
mov eax, dword [edi + 8]
mov edx, dword [edi + 0x14]
cmp dword [eax], edx
mov edx, dword [0x4927a0]
je 0x41de6d
inc ecx
add eax, 0x2c
cmp ecx, esi
jl 0x41de53
jmp 0x41df81
test eax, eax
je 0x41df81
mov esi, dword [eax + 8]
test esi, esi
jne 0x41de7f
mov esi, dword [ebx + 0x70]
mov eax, dword [ebx + 0x74]
xor cl, cl
mov dword [ebp - 8], ecx
test eax, eax
je 0x41decb
test byte [eax + 8], 4
jne 0x41decb
mov eax, dword [ebx + 0x18]
mov ecx, ebx
test eax, eax
je 0x41dea9
nop word [eax + eax]
mov ecx, eax
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x41dea0
cmp dword [ecx + 0x7c], ebx
jne 0x41deb4
cmp dword [ecx + 0x78], 0
je 0x41dec8
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 8]
shr eax, 0xa
test al, 1
movzx ecx, cl
cmovne ecx, dword [ebp - 0x40]
jmp 0x41decb
mov ecx, dword [ebp - 8]
movss xmm0, dword [edx + 0x36a8]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x41dee0
mov ah, 1
jmp 0x41dee2
xor ah, ah
cmp byte [edx + 0xd60], 0
jne 0x41deef
xor al, al
jmp 0x41df19
movss xmm0, dword [edx + 0x30]
movaps xmm1, xmm0
mulss xmm1, dword [0x485bec]
comiss xmm2, xmm1
jbe 0x41df07
movaps xmm1, xmm0
movss xmm0, dword [edx + 0x36f8]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
test cl, cl
je 0x41df6a
test al, al
je 0x41df81
lea eax, [ebp - 0x78]
mov dword [ebp - 0x5c], 0
push eax
lea ecx, [edx + 0x534c]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x64], 0x3f000000
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x58], ebx
call fcn.00422700
jmp 0x41df81
test ah, ah
jne 0x41df72
test al, al
je 0x41df81
cmp dword [edx + 0x3f14], esi
je 0x41df81
mov ecx, esi
call fcn.00406900
mov ecx, dword [edi + 0x18]
test ecx, ecx
cmove ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x41dfc8
mov edx, dword [edi]
xor eax, eax
test edx, edx
jle 0x41dfc8
mov esi, dword [edi + 8]
nop dword [eax]
cmp dword [esi], ecx
je 0x41dfae
inc eax
add esi, 0x2c
cmp eax, edx
jl 0x41dfa0
jmp 0x41dfc8
test esi, esi
je 0x41dfc8
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41dfc8
call fcn.00411060
mov ecx, dword [esi + 8]
xor dl, dl
call fcn.004142c0
call fcn.0043cce0
mov eax, dword [0x4927a0]
mov eax, dword [eax + 0x3f04]
dec dword [eax + 0xfc]
mov eax, dword [ebx + 0x10]
shr eax, 0xa
test al, 1
jne 0x41e071
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x15]
mov dword [eax + 0x160], 0
mov byte [eax + 0xc8], cl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e4b9
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x24], 0
jle 0x41e020
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
jmp 0x41e022
xor eax, eax
mov dl, byte [ebp - 0x15]
mov dword [ebp - 0x40], eax
and dl, 0xfd
mov dword [ebx + 0x74], eax
mov al, cl
add al, al
or dl, al
mov byte [ebx + 0xa0], dl
test cl, cl
je 0x41e04a
mov eax, dword [esi + 0x3ea0]
mov dword [ebx + 0x8c], eax
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x41e071
test cl, cl
jne 0x41e05b
cmp dword [edi + 0x74], 0
jne 0x41e05e
mov dword [edi + 0x74], eax
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x41e071
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 0x88]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e4b9
mov esp, ebp
pop ebp
ret