Function at 0x40d800
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp byte [0x519388], 0
push esi
push edi
jne 0x40d828
cmp byte [0x51938f], 0
jne 0x40d828
mov ax, word [0x5190e2]
add ax, ax
movzx edi, ax
jmp 0x40d846
mov ax, word [0x5190f6]
add ax, word [0x5190f4]
add ax, ax
movzx edi, ax
mov eax, 0x1068
cmp di, ax
cmovg edi, eax
push 0x4aa200
push str.BVMIMX
push 0x4a9c00
push str._s_s_s
push 0x4a9a00
call fcn.004015c0
push 0x4a9a00
call fcn.004026f0
push 0x48a470
push 0x4a9a00
call fcn.0044c7ec
add esp, 0x20
mov dword [0x630d9c], eax
mov esi, 0x4b64b4
mov dword [ebp - 0x28], 3
push eax
push 1
push 0x8348
push 0x4b64e0
call fcn.0044ca9e
mov eax, 1
add esp, 0x10
cmp ax, di
jg 0x40d8d8
mov ecx, 8
movzx edx, di
nop dword [eax + eax]
mov eax, dword [esi]
lea ecx, [ecx + 8]
movsd xmm0, qword [ecx + 0x4b64d8]
movsd qword [ecx + eax - 8], xmm0
sub edx, 1
jne 0x40d8c0
add esi, 4
sub dword [ebp - 0x28], 1
je 0x40d8e8
mov eax, dword [0x630d9c]
jmp 0x40d891
push dword [0x630d9c]
push 1
push 0x8348
push 0x4b64e0
call fcn.0044ca9e
push dword [0x630d9c]
push 1
push 0x8348
push 0x4b64e0
call fcn.0044ca9e
push dword [0x630d9c]
push 1
push 0x8348
push 0x4b64e0
call fcn.0044ca9e
add esp, 0x30
mov dword [ebp - 0x28], 3
mov esi, 0x4b64c4
nop dword [eax]
push dword [0x630d9c]
push 1
push 0x8348
push 0x4b64e0
call fcn.0044ca9e
mov eax, 1
add esp, 0x10
cmp ax, di
jg 0x40d988
mov ecx, 8
movzx edx, di
nop dword [eax]
mov eax, dword [esi]
lea ecx, [ecx + 8]
movsd xmm0, qword [ecx + 0x4b64d8]
movsd qword [ecx + eax - 8], xmm0
sub edx, 1
jne 0x40d970
add esi, 4
sub dword [ebp - 0x28], 1
jne 0x40d940
mov eax, dword [0x630d9c]
test eax, eax
je 0x40d9a3
push eax
call fcn.0044c4fe
add esp, 4
call fcn.00404d80
mov eax, 1
mov edi, eax
mov dword [ebp - 0x28], eax
cmp di, word [0x5190e4]
jg 0x40e1d8
nop
cwde
mov ecx, 1
imul edx, eax, 0x68
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], edx
movzx edx, word [edx + 0x5e98e4]
cmp di, dx
jg 0x40e1c4
mov edx, dword [eax*4 + 0x518d80]
movsx edi, cx
mov dword [ebp - 0x10], edi
lea ecx, [edi + edi*8]
shl ecx, 3
mov dword [ebp - 0x38], ecx
cmp byte [edx + ecx + 0x23], 0
jne 0x40e1a5
movsx eax, word [edx + ecx + 0x2a]
xor esi, esi
mov edi, dword [ebp - 0x24]
imul eax, eax, 0x5c
movss xmm0, dword [eax + 0x611880]
movzx eax, word [edx + ecx + 0x20]
cvtps2pd xmm0, xmm0
mov dword [ebp - 0x14], eax
movzx eax, word [edi + 0x5e98e4]
mulsd xmm0, qword [0x48bb30]
movsd qword [ebp - 0x40], xmm0
cmp word [ebp - 0x20], ax
jge 0x40da4b
mov ax, word [edx + ecx + 0x1c]
add ax, word [ebp - 0x14]
movzx eax, ax
jmp 0x40da55
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x5e98e0]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
movzx eax, ax
mov dword [ebp - 0x18], eax
movsx eax, di
mov edi, dword [ebp - 0x10]
mov dword [ebp - 8], eax
movsx eax, word [edx + ecx + 0x1c]
add eax, dword [ebp - 8]
cmp dword [ebp - 8], eax
jg 0x40dcf1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
movsx edi, word [edx + ecx + 0x1c]
inc esi
add edi, eax
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], edi
movzx ecx, ax
mov eax, dword [ebp - 0x2c]
movzx eax, ax
cmove ecx, eax
movzx esi, cx
movsx eax, si
mov dword [ebp - 0x34], eax
imul edx, eax, 0x64
mov eax, dword [ebp - 0xc]
cwde
push esi
mov ecx, dword [eax*4 + 0x591a00]
mov eax, dword [edx + 0x5193f0]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
movsx ecx, ax
mov eax, dword [edx + 0x5193f4]
mov ecx, dword [ecx*4 + 0x591a00]
mov dword [ecx + 4], eax
call fcn.00402770
mov eax, dword [ebp - 0xc]
mov ecx, 8
movsd xmm1, qword [ebp - 0x40]
movsx esi, ax
fstp dword [ebp - 0x30]
movss xmm0, dword [ebp - 0x30]
mov eax, dword [esi*4 + 0x591a00]
movss dword [eax + 0x68], xmm0
movaps xmm0, xmm1
subsd xmm0, qword [0x611828]
mov eax, dword [esi*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x58], xmm0
movaps xmm0, xmm1
subsd xmm0, qword [0x611820]
mov eax, dword [esi*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x5c], xmm0
movaps xmm0, xmm1
subsd xmm0, qword [0x611868]
mov eax, dword [esi*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x60], xmm0
movaps xmm0, xmm1
subsd xmm0, qword [0x611860]
mov eax, dword [esi*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x64], xmm0
mov eax, dword [esi*4 + 0x591a00]
mov dword [eax + 0x3c], 0
mov eax, dword [esi*4 + 0x591a00]
mov dword [eax + 0x44], 0
mov eax, dword [esi*4 + 0x591a00]
mov dword [eax + 0x38], 0
mov eax, dword [esi*4 + 0x591a00]
mov dword [eax + 0x40], 0
xor eax, eax
cmp dword [ebp - 0x1c], edi
cmove eax, ecx
mov ecx, dword [ebp - 0x34]
shl ecx, 4
sub ecx, eax
mov eax, dword [0x4b64b8]
movsd xmm0, qword [ecx + eax]
mov eax, dword [esi*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0xc], xmm0
mov eax, dword [0x4b64b4]
movsd xmm0, qword [ecx + eax]
mov eax, dword [esi*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x10], xmm0
mov eax, dword [0x4b64bc]
movsd xmm0, qword [ecx + eax]
cvtpd2ps xmm0, xmm0
mov eax, dword [esi*4 + 0x591a00]
movss dword [eax + 8], xmm0
mov eax, dword [0x4b64c8]
movsd xmm0, qword [ecx + eax]
mov eax, dword [esi*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x24], xmm0
mov eax, dword [0x4b64c4]
movsd xmm0, qword [ecx + eax]
mov eax, dword [esi*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x28], xmm0
mov eax, dword [0x4b64cc]
movsd xmm0, qword [ecx + eax]
xor ecx, ecx
mov eax, dword [esi*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x20], xmm0
mov eax, dword [esi*4 + 0x591a00]
mov byte [eax + 0x70], 0
mov eax, dword [esi*4 + 0x591a00]
mov byte [eax + 0x71], 0
mov eax, dword [esi*4 + 0x591a00]
mov word [eax + 0x72], cx
mov ecx, dword [esi*4 + 0x591a00]
lea eax, [ecx + 0x18]
push eax
lea eax, [ecx + 0x14]
push eax
lea eax, [ecx + 0x1c]
push eax
lea eax, [ecx + 0x10]
push eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 8]
push eax
call fcn.00403700
mov ecx, dword [esi*4 + 0x591a00]
lea eax, [ecx + 0x30]
push eax
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x34]
push eax
lea eax, [ecx + 0x28]
push eax
lea eax, [ecx + 0x24]
push eax
lea eax, [ecx + 0x20]
push eax
call fcn.00403700
mov ecx, dword [ebp - 4]
add esp, 0x34
mov eax, dword [ebp - 0x18]
inc eax
movsx esi, ax
mov edx, dword [ecx*4 + 0x518d80]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
movsx eax, word [edx + ecx + 0x1c]
add eax, dword [ebp - 8]
cmp esi, eax
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
jle 0x40da84
mov edi, dword [ebp - 0x10]
movsd xmm0, qword [0x611840]
sub esp, 8
mulsd xmm0, qword [0x48bab8]
movzx eax, si
mov dword [ebp - 0x38], eax
movsd qword [esp], xmm0
xorps xmm0, xmm0
push esi
sub esp, 8
movsd qword [esp], xmm0
call fcn.004022c0
movsd xmm0, qword [0x611850]
add esp, 0x14
push 1
push esi
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [0x611858]
movsd qword [esp], xmm0
call fcn.00401890
mov eax, 1
add esp, 0x18
cmp ax, si
jg 0x40ddb1
movss xmm1, dword [0x48d84c]
mov ecx, 0x591a04
movzx edx, si
mov eax, dword [ecx]
lea ecx, [ecx + 4]
movss xmm0, dword [eax + 0x14]
mulss xmm0, xmm1
movss dword [eax + 0x14], xmm0
mov eax, dword [ecx - 4]
movss xmm0, dword [eax + 0x18]
mulss xmm0, xmm1
movss dword [eax + 0x18], xmm0
mov eax, dword [ecx - 4]
movss xmm0, dword [eax + 0x2c]
mulss xmm0, xmm1
movss dword [eax + 0x2c], xmm0
mov eax, dword [ecx - 4]
movss xmm0, dword [eax + 0x30]
mulss xmm0, xmm1
movss dword [eax + 0x30], xmm0
sub edx, 1
jne 0x40dd66
movsd xmm0, qword [0x611840]
sub esp, 8
mulsd xmm0, qword [0x48bab8]
movsd qword [esp], xmm0
xorps xmm0, xmm0
push esi
sub esp, 8
movsd qword [esp], xmm0
call fcn.004022c0
movsd xmm0, qword [0x611850]
add esp, 0x14
push 0
push esi
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [0x611858]
movsd qword [esp], xmm0
call fcn.00401890
mov eax, 1
add esp, 0x18
cmp ax, si
jg 0x40df33
mov edx, 0x591a04
movzx edi, si
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0x48], eax
mov ecx, dword [edx - 4]
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x4c], eax
mov ecx, dword [edx - 4]
mov eax, dword [ecx + 0x24]
mov dword [ecx + 0x50], eax
mov ecx, dword [edx - 4]
mov eax, dword [ecx + 0x28]
mov dword [ecx + 0x54], eax
sub edi, 1
jne 0x40de20
movss xmm1, dword [0x48d84c]
mov ecx, 0x591a04
mov edi, dword [ebp - 0x10]
movzx edx, si
nop
mov eax, dword [ecx]
lea ecx, [ecx + 4]
movss xmm0, dword [eax + 0x14]
mulss xmm0, xmm1
movss dword [eax + 0x14], xmm0
mov eax, dword [ecx - 4]
movss xmm0, dword [eax + 0x18]
mulss xmm0, xmm1
movss dword [eax + 0x18], xmm0
mov eax, dword [ecx - 4]
movss xmm0, dword [eax + 0x2c]
mulss xmm0, xmm1
movss dword [eax + 0x2c], xmm0
mov eax, dword [ecx - 4]
movss xmm0, dword [eax + 0x30]
mulss xmm0, xmm1
movss dword [eax + 0x30], xmm0
sub edx, 1
jne 0x40de60
movsd xmm0, qword [0x611840]
sub esp, 8
mulsd xmm0, qword [0x48bab8]
movsd qword [esp], xmm0
xorps xmm0, xmm0
push dword [ebp - 0x38]
sub esp, 8
movsd qword [esp], xmm0
call fcn.004022c0
add esp, 0x14
movzx edx, si
mov eax, 0x591a04
mov ecx, dword [eax]
movss xmm0, dword [ecx + 0x24]
comiss xmm0, dword [ecx + 0xc]
jbe 0x40def3
movss dword [ecx + 0xc], xmm0
mov ecx, dword [eax]
movss xmm0, dword [ecx + 0x28]
comiss xmm0, dword [ecx + 0x10]
jbe 0x40df05
movss dword [ecx + 0x10], xmm0
mov ecx, dword [eax]
movss xmm0, dword [ecx + 0x50]
comiss xmm0, dword [ecx + 0x48]
jbe 0x40df17
movss dword [ecx + 0x48], xmm0
mov ecx, dword [eax]
movss xmm0, dword [ecx + 0x54]
comiss xmm0, dword [ecx + 0x4c]
jbe 0x40df29
movss dword [ecx + 0x4c], xmm0
add eax, 4
sub edx, 1
jne 0x40dee1
jmp 0x40df5f
movsd xmm0, qword [0x611840]
sub esp, 8
mulsd xmm0, qword [0x48bab8]
movsd qword [esp], xmm0
xorps xmm0, xmm0
push esi
sub esp, 8
movsd qword [esp], xmm0
call fcn.004022c0
add esp, 0x14
mov eax, dword [ebp - 4]
lea ecx, [edi + edi*8]
mov eax, dword [eax*4 + 0x518d80]
movzx eax, byte [eax + ecx*8 + 0x28]
cmp eax, 0xc
ja case.0x40df7a.9
jmp dword [eax*4 + 0x40ea20]
mov eax, dword [str.frei]
mov dword [0x4a9900], eax
mov al, byte [0x48cbc8]
mov byte [0x4a9904], al
jmp case.0x40df7a.9
mov al, byte [0x48cbd4]
movq xmm0, qword [str.Unterzug]
mov byte [0x4a9908], al
jmp 0x40e065
movups xmm0, xmmword [str.gelenkig_gelagert]
mov ax, word [0x48cbe8]
mov word [0x4a9910], ax
movups xmmword [0x4a9900], xmm0
jmp case.0x40df7a.9
movq xmm0, qword [str.eingespannt]
mov eax, dword [0x48cbf4]
jmp 0x40e060
movups xmm0, xmmword [str.Symmetrie_Achse]
movups xmmword [0x4a9900], xmm0
jmp case.0x40df7a.9
mov ax, word [0x48cc10]
movq xmm0, qword [str.Drehfeder]
mov word [0x4a9908], ax
jmp 0x40e065
movups xmm0, xmmword [str.Dreh__Senkfeder]
mov al, byte [0x48cc24]
mov byte [0x4a9910], al
movups xmmword [0x4a9900], xmm0
jmp case.0x40df7a.9
movups xmm0, xmmword [str.Vertikale_Feder]
movups xmmword [0x4a9900], xmm0
jmp case.0x40df7a.9
mov eax, dword [0x48cc40]
movq xmm0, qword [str.Zwischenwand]
mov dword [0x4a9908], eax
mov al, byte [0x48cc44]
mov byte [0x4a990c], al
jmp 0x40e065
movq xmm0, qword [str.Trennstelle]
mov eax, dword [0x48cc50]
mov dword [0x4a9908], eax
movq qword [0x4a9900], xmm0
push section..data
push 0x48a76c
push dword [0x630da0]
call fcn.004070f0
mov eax, dword [ebp - 4]
lea ecx, [edi + edi*8]
add esp, 4
mov eax, dword [eax*4 + 0x518d80]
movsx eax, word [eax + ecx*8 + 0x2a]
imul eax, eax, 0x5c
movss xmm0, dword [eax + 0x611880]
mulss xmm0, dword [0x48bb98]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.__h___4.1lf_cm
push 0x4a9800
call fcn.004015c0
add esp, 0x10
cmp word [0x5190e4], 1
jne 0x40e0fd
push 0x4a9900
push str._auf_dem_Rand_
push edi
push 2
push str.Seite
push section..data
push str._s_s_d_s_s_n
push dword [0x630da0]
call fcn.004070f0
add esp, 0x20
jmp 0x40e196
cmp word [0x519134], 0
push 0x4a9800
push 0x4a9900
jne 0x40e12f
push dword [ebp - 4]
push edi
push section..data
push str._sSeite__2d_des_Bereichs__i___s_s_n
push dword [0x630da0]
call fcn.004070f0
add esp, 0x1c
jmp 0x40e196
mov ax, word [0x519114]
push 0x48a94c
cmp word [ebp - 0x28], ax
jg 0x40e168
push dword [ebp - 4]
push str._des_Bereichs
push edi
push str.Seite
push section..data
push str._s_s_2d_s_d_s_s_s_n
push dword [0x630da0]
call fcn.004070f0
add esp, 0x28
jmp 0x40e196
mov ecx, dword [ebp - 4]
cwde
sub ecx, eax
push ecx
push 1
push 0x48ccc4
push edi
push 2
push str.Seite
push section..data
push str._s_s_d_s_d_s_s_s_n
push dword [0x630da0]
call fcn.004070f0
add esp, 0x30
push esi
push dword [ebp - 0x14]
call fcn.00407180
mov eax, dword [ebp - 4]
add esp, 8
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
movzx esi, word [edx + 0x5e98e4]
cmp cx, si
jle 0x40d9e2
mov edi, 1
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp ax, word [0x5190e4]
jle 0x40d9c0
push section..data
push 0x48a76c
push dword [0x630da0]
call fcn.004070f0
push 0x4aa200
push str.BV_AS
push 0x4a9c00
push str._s_s_s
push 0x4a9a00
call fcn.004015c0
push 0x48a574
push 0x4a9a00
call fcn.0044c7ec
mov si, word [0x5190e4]
add esp, 0x28
mov dword [0x630d9c], eax
mov ecx, 1
mov dword [ebp - 8], ecx
cmp di, si
jg 0x40ea06
nop word [eax + eax]
movsx edx, cx
mov eax, 1
imul ecx, edx, 0x68
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], ecx
movzx ecx, word [ecx + 0x5e98e4]
cmp di, cx
jg 0x40e9f6
mov ecx, dword [edx*4 + 0x518d80]
cwde
lea esi, [eax + eax*8]
shl esi, 3
mov dword [ebp - 0x24], esi
cmp byte [ecx + esi + 0x23], 0
jne 0x40e9cd
movsx eax, word [ecx + esi + 0x2a]
xor edi, edi
movzx edx, word [ecx + esi + 0x20]
imul eax, eax, 0x5c
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x1c]
movss xmm0, dword [eax + 0x611880]
movzx eax, word [edx + 0x5e98e4]
mov edx, dword [ebp - 0x18]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x48bb30]
movsd qword [ebp - 0x40], xmm0
cmp word [ebp - 0x20], ax
jge 0x40e2ca
mov ax, word [ecx + esi + 0x1c]
add ax, dx
movzx eax, ax
jmp 0x40e2d4
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0x5e98e0]
mov dword [ebp - 0x2c], eax
movzx eax, dx
mov dword [ebp - 0x28], eax
movsx eax, word [ecx + esi + 0x1c]
movsx edx, dx
add eax, edx
cmp edx, eax
jg 0x40e700
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x28]
inc edi
mov dword [ebp - 0x14], edi
movsx edi, word [ecx + esi + 0x1c]
movzx ecx, ax
add edi, edx
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x10], edi
movzx eax, ax
cmove ecx, eax
movzx esi, cx
movsx eax, si
mov dword [ebp - 0x34], eax
imul edx, eax, 0x64
mov eax, dword [ebp - 0x14]
cwde
push esi
mov ecx, dword [eax*4 + 0x591a00]
mov eax, dword [edx + 0x5193f0]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
movsx ecx, ax
mov eax, dword [edx + 0x5193f4]
mov ecx, dword [ecx*4 + 0x591a00]
mov dword [ecx + 4], eax
call fcn.00402770
mov eax, dword [ebp - 0x14]
xor edx, edx
movsd xmm1, qword [ebp - 0x40]
movsx ecx, ax
fstp dword [ebp - 0x38]
movss xmm0, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov eax, dword [ecx*4 + 0x591a00]
movss dword [eax + 0x68], xmm0
movaps xmm0, xmm1
subsd xmm0, qword [0x611828]
mov eax, dword [ecx*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x58], xmm0
movaps xmm0, xmm1
subsd xmm0, qword [0x611820]
mov eax, dword [ecx*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x5c], xmm0
movaps xmm0, xmm1
subsd xmm0, qword [0x611868]
mov eax, dword [ecx*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x60], xmm0
movaps xmm0, xmm1
subsd xmm0, qword [0x611860]
mov eax, dword [ecx*4 + 0x591a00]
cvtpd2ps xmm0, xmm0
movss dword [eax + 0x64], xmm0
mov eax, dword [ecx*4 + 0x591a00]
mov dword [eax + 0x3c], 0
mov eax, dword [ecx*4 + 0x591a00]
mov dword [eax + 0x44], 0
mov eax, dword [ecx*4 + 0x591a00]
mov dword [eax + 0x38], 0
mov eax, dword [ecx*4 + 0x591a00]
mov dword [eax + 0x40], 0
mov eax, dword [ecx*4 + 0x591a00]
mov byte [eax + 0x70], 0
mov eax, dword [ecx*4 + 0x591a00]
mov byte [eax + 0x71], 0
mov eax, dword [ecx*4 + 0x591a00]
mov word [eax + 0x72], dx
xor eax, eax
cmp dword [ebp - 0x10], edi
mov edx, 8
cmove eax, edx
shl esi, 4
sub esi, eax
mov eax, dword [0x4b64b4]
movsd xmm6, qword [esi + eax]
mov eax, dword [0x4b64b8]
movsd xmm7, qword [esi + eax]
mov eax, dword [0x4b64bc]
movsd xmm5, qword [esi + eax]
mov edi, dword [ebp - 0xc]
movaps xmm4, xmm5
mov edx, dword [ebp - 0x24]
addsd xmm4, xmm5
mov eax, dword [edi*4 + 0x518d80]
movss xmm3, dword [eax + edx + 0x14]
movss xmm2, dword [eax + edx + 0x10]
cvtps2pd xmm2, xmm2
mov eax, dword [ecx*4 + 0x591a00]
cvtps2pd xmm3, xmm3
movaps xmm1, xmm2
mulsd xmm1, xmm6
movaps xmm0, xmm3
mulsd xmm0, xmm7
mulsd xmm1, xmm2
mulsd xmm0, xmm3
addsd xmm1, xmm0
movaps xmm0, xmm4
mulsd xmm0, xmm2
mulsd xmm0, xmm3
subsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0xc], xmm0
mov eax, dword [edi*4 + 0x518d80]
movss xmm3, dword [eax + edx + 0x10]
movss xmm1, dword [eax + edx + 0x14]
cvtps2pd xmm1, xmm1
mov eax, dword [ecx*4 + 0x591a00]
cvtps2pd xmm3, xmm3
movaps xmm2, xmm1
movaps xmm0, xmm3
mulsd xmm2, xmm6
mulsd xmm0, xmm7
subsd xmm7, xmm6
mulsd xmm2, xmm1
mulsd xmm0, xmm3
mulsd xmm3, xmm4
addsd xmm2, xmm0
mulsd xmm3, xmm1
addsd xmm2, xmm3
cvtpd2ps xmm0, xmm2
movss dword [eax + 0x10], xmm0
mov eax, dword [edi*4 + 0x518d80]
movss xmm2, dword [eax + edx + 0x10]
movss xmm3, dword [eax + edx + 0x14]
movaps xmm1, xmm2
mulss xmm1, xmm2
movaps xmm0, xmm3
mov eax, dword [ecx*4 + 0x591a00]
mulss xmm0, xmm3
subss xmm1, xmm0
cvtps2pd xmm0, xmm2
cvtps2pd xmm1, xmm1
mulsd xmm7, xmm0
cvtps2pd xmm0, xmm3
mulsd xmm1, xmm5
mulsd xmm7, xmm0
subsd xmm1, xmm7
cvtpd2ps xmm0, xmm1
movss dword [eax + 8], xmm0
mov ecx, dword [ecx*4 + 0x591a00]
lea eax, [ecx + 0x18]
push eax
lea eax, [ecx + 0x14]
push eax
lea eax, [ecx + 0x1c]
push eax
lea eax, [ecx + 0x10]
push eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 8]
push eax
call fcn.00403700
mov eax, dword [0x4b64c4]
movsd xmm6, qword [esi + eax]
mov eax, dword [0x4b64c8]
movsd xmm7, qword [esi + eax]
mov eax, dword [0x4b64cc]
movsd xmm5, qword [esi + eax]
mov eax, dword [edi*4 + 0x518d80]
mov esi, dword [ebp - 0x24]
movaps xmm4, xmm5
mov edi, dword [ebp - 0x14]
addsd xmm4, xmm5
mov edx, dword [ebp - 0xc]
movsx ecx, di
movss xmm3, dword [eax + esi + 0x14]
movss xmm2, dword [eax + esi + 0x10]
cvtps2pd xmm2, xmm2
mov eax, dword [ecx*4 + 0x591a00]
cvtps2pd xmm3, xmm3
movaps xmm1, xmm2
mulsd xmm1, xmm6
movaps xmm0, xmm3
mulsd xmm0, xmm7
mulsd xmm1, xmm2
mulsd xmm0, xmm3
addsd xmm1, xmm0
movaps xmm0, xmm4
mulsd xmm0, xmm2
mulsd xmm0, xmm3
subsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x24], xmm0
mov eax, dword [edx*4 + 0x518d80]
movss xmm3, dword [eax + esi + 0x10]
movss xmm1, dword [eax + esi + 0x14]
cvtps2pd xmm1, xmm1
mov eax, dword [ecx*4 + 0x591a00]
cvtps2pd xmm3, xmm3
movaps xmm2, xmm1
movaps xmm0, xmm3
mulsd xmm2, xmm6
mulsd xmm0, xmm7
subsd xmm7, xmm6
mulsd xmm2, xmm1
mulsd xmm0, xmm3
mulsd xmm3, xmm4
addsd xmm2, xmm0
mulsd xmm3, xmm1
addsd xmm2, xmm3
cvtpd2ps xmm0, xmm2
movss dword [eax + 0x28], xmm0
mov eax, dword [edx*4 + 0x518d80]
movss xmm2, dword [eax + esi + 0x10]
movss xmm3, dword [eax + esi + 0x14]
movaps xmm1, xmm2
mulss xmm1, xmm2
movaps xmm0, xmm3
mov eax, dword [ecx*4 + 0x591a00]
mulss xmm0, xmm3
subss xmm1, xmm0
cvtps2pd xmm0, xmm2
cvtps2pd xmm1, xmm1
mulsd xmm7, xmm0
cvtps2pd xmm0, xmm3
mulsd xmm1, xmm5
mulsd xmm7, xmm0
subsd xmm1, xmm7
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x20], xmm0
mov ecx, dword [ecx*4 + 0x591a00]
lea eax, [ecx + 0x30]
push eax
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x34]
push eax
lea eax, [ecx + 0x28]
push eax
lea eax, [ecx + 0x24]
push eax
lea eax, [ecx + 0x20]
push eax
call fcn.00403700
mov eax, dword [ebp - 0x28]
add esp, 0x34
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x28], eax
mov ecx, dword [ecx*4 + 0x518d80]
cwde
mov dword [ebp - 0x10], eax
movsx eax, word [ecx + esi + 0x1c]
mov esi, dword [ebp - 0x18]
movsx edx, si
mov esi, dword [ebp - 0x24]
add eax, edx
cmp dword [ebp - 0x10], eax
jle 0x40e2f2
movsd xmm0, qword [0x611840]
sub esp, 8
mulsd xmm0, qword [0x48bab8]
movzx eax, di
mov dword [ebp - 0x38], eax
movsd qword [esp], xmm0
xorps xmm0, xmm0
push edi
sub esp, 8
movsd qword [esp], xmm0
call fcn.004022c0
movsd xmm0, qword [0x611850]
add esp, 0x14
push 1
push edi
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [0x611858]
movsd qword [esp], xmm0
call fcn.00401890
mov esi, 1
add esp, 0x18
cmp si, di
jg 0x40e7bb
movss xmm1, dword [0x48bc40]
mov ecx, 0x591a04
movzx edx, di
mov eax, dword [ecx]
lea ecx, [ecx + 4]
movss xmm0, dword [eax + 0x14]
xorps xmm0, xmm1
movss dword [eax + 0x14], xmm0
mov eax, dword [ecx - 4]
movss xmm0, dword [eax + 0x18]
xorps xmm0, xmm1
movss dword [eax + 0x18], xmm0
mov eax, dword [ecx - 4]
movss xmm0, dword [eax + 0x2c]
xorps xmm0, xmm1
movss dword [eax + 0x2c], xmm0
mov eax, dword [ecx - 4]
movss xmm0, dword [eax + 0x30]
xorps xmm0, xmm1
movss dword [eax + 0x30], xmm0
sub edx, esi
jne 0x40e775
movsd xmm0, qword [0x611840]
sub esp, 8
mulsd xmm0, qword [0x48bab8]
movsd qword [esp], xmm0
xorps xmm0, xmm0
push edi
sub esp, 8
movsd qword [esp], xmm0
call fcn.004022c0
movsd xmm0, qword [0x611850]
add esp, 0x14
push 0
push edi
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [0x611858]
movsd qword [esp], xmm0
call fcn.00401890
add esp, 0x18
cmp si, di
jg 0x40e9a1
mov edx, 0x591a04
movzx esi, di
mov ecx, dword [edx]
lea edx, [edx + 4]
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0x48], eax
mov ecx, dword [edx - 4]
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x4c], eax
mov ecx, dword [edx - 4]
mov eax, dword [ecx + 0x24]
mov dword [ecx + 0x50], eax
mov ecx, dword [edx - 4]
mov eax, dword [ecx + 0x28]
mov dword [ecx + 0x54], eax
sub esi, 1
jne 0x40e821
movss xmm1, dword [0x48bc40]
mov ecx, 0x591a04
movzx edx, di
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
movss xmm0, dword [eax + 0x14]
xorps xmm0, xmm1
movss dword [eax + 0x14], xmm0
mov eax, dword [ecx - 4]
movss xmm0, dword [eax + 0x18]
xorps xmm0, xmm1
movss dword [eax + 0x18], xmm0
mov eax, dword [ecx - 4]
movss xmm0, dword [eax + 0x2c]
xorps xmm0, xmm1
movss dword [eax + 0x2c], xmm0
mov eax, dword [ecx - 4]
movss xmm0, dword [eax + 0x30]
xorps xmm0, xmm1
movss dword [eax + 0x30], xmm0
sub edx, 1
jne 0x40e860
movsd xmm0, qword [0x611840]
sub esp, 8
mulsd xmm0, qword [0x48bab8]
movsd qword [esp], xmm0
xorps xmm0, xmm0
push dword [ebp - 0x38]
sub esp, 8
movsd qword [esp], xmm0
call fcn.004022c0
add esp, 0x14
movzx edx, di
mov eax, 0x591a04
nop dword [eax]
mov ecx, dword [eax]
movss xmm0, dword [ecx + 0x24]
comiss xmm0, dword [ecx + 0xc]
jbe 0x40e8f2
movss dword [ecx + 0xc], xmm0
mov ecx, dword [eax]
movss xmm0, dword [ecx + 0x28]
comiss xmm0, dword [ecx + 0x10]
jbe 0x40e904
movss dword [ecx + 0x10], xmm0
mov ecx, dword [eax]
movss xmm0, dword [ecx + 0x50]
comiss xmm0, dword [ecx + 0x48]
jbe 0x40e916
movss dword [ecx + 0x48], xmm0
mov ecx, dword [eax]
movss xmm0, dword [ecx + 0x54]
comiss xmm0, dword [ecx + 0x4c]
jbe 0x40e928
movss dword [ecx + 0x4c], xmm0
add eax, 4
sub edx, 1
jne 0x40e8e0
mov esi, 0x591a04
movzx edi, di
nop dword [eax + eax]
push dword [0x630d9c]
mov eax, dword [esi]
push 1
add eax, 0x38
push 4
push eax
call fcn.0044d1b5
push dword [0x630d9c]
mov eax, dword [esi]
push 1
add eax, 0x3c
push 4
push eax
call fcn.0044d1b5
push dword [0x630d9c]
mov eax, dword [esi]
push 1
add eax, 0x40
push 4
push eax
call fcn.0044d1b5
push dword [0x630d9c]
mov eax, dword [esi]
push 1
add eax, 0x44
push 4
push eax
call fcn.0044d1b5
add esp, 0x40
lea esi, [esi + 4]
sub edi, 1
jne 0x40e940
jmp 0x40e9cd
movsd xmm0, qword [0x611840]
sub esp, 8
mulsd xmm0, qword [0x48bab8]
movsd qword [esp], xmm0
xorps xmm0, xmm0
push edi
sub esp, 8
movsd qword [esp], xmm0
call fcn.004022c0
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
movzx edx, word [ecx + 0x5e98e4]
cmp ax, dx
mov edx, dword [ebp - 0xc]
jle 0x40e264
mov si, word [0x5190e4]
mov edi, 1
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp cx, si
jle 0x40e240
mov eax, dword [0x630d9c]
pop edi
pop esi
test eax, eax
je 0x40ea1a
push eax
call fcn.0044c4fe
add esp, 4
mov esp, ebp
pop ebp
ret