Function at 0x41a020
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x49400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x495280]
mov eax, esi
push edi
mov edi, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], esi
mov eax, dword [eax + 0x1be0]
and byte [edi + 0x95], 0xfd
cmp dword [edi + 0x10], 0
mov dword [edi + 0x78], eax
mov dword [edi + 0x74], 0
mov dword [edi + 0x70], 0
jne 0x41a171
call fcn.00419d80
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
cmp dword [edi + 0x1c], ecx
jle 0x41a0a0
mov edx, edi
mov ecx, 1
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [edi + 8]
shr eax, 0xb
test al, 1
cmovne esi, edi
mov dword [ebp - 0x24], esi
cmp ecx, 1
jle 0x41a0b7
test esi, esi
jne 0x41a0eb
mov eax, dword [edi + 0x14]
test eax, eax
je 0x41a0d1
lea edx, [ebp - 0x24]
mov ecx, eax
call fcn.00419d30
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x41a0eb
lea edx, [ebp - 0x24]
mov ecx, eax
call fcn.00419d30
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
xor eax, eax
mov dword [edi + 0x70], esi
cmp ecx, 1
cmove eax, edx
cmp dword [edi + 0x84], 0
mov dword [edi + 0x74], eax
jne 0x41a10e
test edx, edx
je 0x41a168
mov eax, dword [edx]
mov dword [edi + 0x84], eax
test edx, edx
je 0x41a168
mov eax, dword [edx + 0x24]
mov ecx, 1
mov eax, dword [eax]
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x48], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edi + 0x58], xmm0
mov esi, dword [edx + 0x1c]
cmp esi, ecx
jle 0x41a168
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x30], eax
lea edx, [eax + 4]
nop dword [eax]
mov eax, dword [edx]
cmp byte [eax + 0x2d], 0
je 0x41a152
inc ecx
add edx, 4
cmp ecx, esi
jl 0x41a140
jmp 0x41a168
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + ecx*4]
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x48], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edi + 0x58], xmm0
mov esi, dword [0x495280]
mov dword [ebp - 0x38], esi
cmp dword [edi + 0x28], 0
je 0x41a191
mov eax, dword [edi + 8]
shr eax, 0xc
test al, 1
je 0x41a191
mov ecx, edi
call fcn.0041bf00
mov esi, dword [0x495280]
mov dword [ebp - 0x38], esi
mov edx, dword [edi + 0x1c]
cmp edx, 1
jg 0x41a3e7
cmp dword [edi + 0x10], 0
jne 0x41a3e7
test dword [edi + 8], 0x400
jne 0x41a3e7
cmp dword [edi + 0x14], 0
jne 0x41a3e7
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0xb1], 0
jne 0x41a3e7
lea ecx, [edi + 0x24]
mov dword [ebp - 0x40], ecx
test edx, edx
je 0x41a285
mov eax, dword [ecx]
mov eax, dword [eax]
cmp byte [eax + 0x2c], 0
jne 0x41a3e7
cmp edx, 1
jne 0x41a285
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x30], edx
mov eax, dword [edx + 0x44]
mov ecx, dword [edx + 0x48]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ecx
mov eax, dword [edx + 0x54]
mov ecx, dword [edx + 0x58]
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x90]
and eax, 0xfffffebf
mov dword [edi + 0x38], ecx
or eax, 0x80
and eax, 0xffffffd7
or eax, 0x10
and eax, 0xfffffffa
or eax, 2
mov dword [edi + 0x90], eax
mov eax, dword [edi + 0x68]
test eax, eax
je 0x41a256
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 0x1e18], eax
jne 0x41a256
mov ecx, edx
call fcn.004107a0
mov esi, dword [0x495280]
mov edx, dword [ebp - 0x30]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x41a282
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov eax, dword [edi + 0x68]
mov eax, dword [eax + 0x34]
mov dword [edx + 0x34], eax
mov eax, dword [edi + 0x68]
cmp byte [eax + 0xc2], 0
je 0x41a282
mov dword [ecx + 0x6c], edx
mov byte [edx + 0xc2], 1
lea ecx, [edi + 0x24]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x41a2a5
cmp dword [eax + 0x3c0], edi
jne 0x41a29e
mov dword [eax + 0x3c0], 0
mov dword [edi + 0x68], 0
cmp dword [edi + 0x1c], 1
jne 0x41a2bb
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov dword [edi + 0x6c], eax
mov eax, dword [ecx]
and byte [eax + 0x3a1], 0xfe
cmp dword [edi + 0x28], 0
je 0x41a2ce
mov ecx, edi
call fcn.0041bf00
mov esi, dword [0x495280]
mov cl, byte [edi + 0x94]
mov eax, dword [ebp - 0x44]
and cl, 0xef
and cl, 0xf3
mov dword [edi + 0xc], 1
mov dword [edi + 0x8c], 0
mov byte [edi + 0x94], cl
mov eax, dword [eax + 0x1be0]
mov dword [edi + 0x7c], eax
test cl, 0x40
je 0x41adbc
cmp dword [edi + 0x1c], 1
jne 0x41adbc
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
call fcn.004107a0
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x88]
call fcn.004058c0
mov byte [esi + 0x1e6a], 1
mov cl, 1
mov byte [esi + 0x1c92], 1
mov eax, dword [edx + 0x360]
movss xmm2, dword [esi + 0x38c]
movss xmm1, dword [esi + 0x390]
movaps xmm0, xmm2
subss xmm0, dword [eax + 0x44]
subss xmm1, dword [eax + 0x48]
movss dword [esi + 0x1ca8], xmm0
movss dword [esi + 0x1cac], xmm1
test byte [edx + 8], 4
jne 0x41a382
mov eax, dword [edx + 0x360]
test byte [eax + 8], 4
je 0x41a384
xor cl, cl
mov eax, dword [edx + 0x3c0]
test eax, eax
je 0x41a39b
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x41a39b
test byte [eax + 8], 4
jne 0x41a3a5
test cl, cl
je 0x41a3a5
mov dword [esi + 0x1c58], edx
movss xmm0, dword [esi + 0x390]
subss xmm2, dword [edi + 0x2c]
subss xmm0, dword [edi + 0x30]
mov dword [esi + 0x1c58], edx
movss dword [esi + 0x1ca8], xmm2
movss dword [esi + 0x1cac], xmm0
and byte [edi + 0x94], 0xbf
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472e83
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov al, byte [edi + 0x94]
test al, 1
je 0x41a48f
cmp dword [edi + 0x68], 0
jne 0x41a48f
cmp dword [edi + 0x10], 0
jne 0x41a48f
test dword [edi + 8], 0x400
jne 0x41a48f
cmp dword [edi + 0x14], 0
jne 0x41a48f
cmp dword [edi + 0x88], 0
je 0x41a455
xor ecx, ecx
test edx, edx
jle 0x41a455
mov edx, dword [edi + 0x24]
nop
mov eax, dword [edx]
mov esi, dword [edi + 0x88]
cmp dword [eax + 4], esi
mov esi, dword [ebp - 0x38]
je 0x41a44b
inc ecx
add edx, 4
cmp ecx, dword [edi + 0x1c]
jl 0x41a430
jmp 0x41a455
mov eax, dword [edi + 0x24]
mov eax, dword [eax + ecx*4]
test eax, eax
jne 0x41a45a
mov eax, dword [edi + 0x24]
mov eax, dword [eax]
cmp byte [eax + 0xdc], 0
jg 0x41a46c
cmp byte [eax + 0xdd], 0
jle 0x41a486
mov dword [edi + 0xc], 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472e83
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov al, byte [edi + 0x94]
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 4]
or ecx, dword [edi + 8]
mov dword [ebp - 0x40], ecx
test edx, edx
jle 0x41a4b0
test ecx, 0x4000
jne 0x41a4b0
and al, 0xfb
or al, 8
mov byte [edi + 0x94], al
jmp 0x41a4bc
and al, 0xf3
mov byte [edi + 0x94], al
test edx, edx
jle 0x41a507
xor esi, esi
nop
mov eax, dword [edi + 0x24]
mov edx, dword [eax + esi*4]
mov al, byte [edi + 0x94]
mov cl, byte [edx + 0xcc]
shl cl, 2
or cl, al
xor cl, al
and cl, 4
xor cl, al
cmp dword [edi + 0x1c], 1
mov byte [edi + 0x94], cl
mov al, byte [edx + 0x3a1]
setg cl
and al, 0xfe
inc esi
or cl, al
mov byte [edx + 0x3a1], cl
cmp esi, dword [edi + 0x1c]
jl 0x41a4c0
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
mov edx, dword [edi + 8]
test ecx, 0x8000
je 0x41a519
and byte [edi + 0x94], 0xfb
xor eax, eax
shr edx, 0xa
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x31], al
test dl, 1
je 0x41a534
mov ecx, dword [edi + 0x68]
mov dword [ebp - 0x3c], ecx
jmp 0x41a851
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x41a759
test byte [edi + 0x94], 1
je 0x41a773
cmp dword [edi + 0x1c], eax
jle 0x41a558
mov eax, dword [edi + 0x24]
mov edx, dword [eax]
jmp 0x41a55a
xor edx, edx
mov eax, dword [edi + 0x90]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x41a57e
test edx, edx
je 0x41a5c0
or dword [esi + 0x1cd0], 1
mov eax, dword [edx + 0x44]
mov ecx, dword [edx + 0x48]
jmp 0x41a58f
cmp eax, 1
jne 0x41a5c0
or dword [esi + 0x1cd0], eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x30]
mov byte [esi + 0x1d0c], 1
mov dword [esi + 0x1cd4], 1
mov dword [esi + 0x1cf0], 0
mov dword [esi + 0x1cec], 0
mov dword [esi + 0x1ce8], ecx
mov dword [esi + 0x1ce4], eax
mov eax, dword [edi + 0x90]
shl eax, 0x1a
sar eax, 0x1d
cmp eax, 2
jne 0x41a5e3
test edx, edx
je 0x41a60b
or dword [esi + 0x1cd0], eax
mov eax, dword [edx + 0x54]
mov ecx, dword [edx + 0x58]
jmp 0x41a5f5
cmp eax, 1
jne 0x41a60b
or dword [esi + 0x1cd0], 2
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x1cd8], 1
mov dword [esi + 0x1cf8], ecx
mov dword [esi + 0x1cf4], eax
mov eax, dword [edi + 0x90]
and al, 0x38
cmp al, 0x10
jne 0x41a638
test edx, edx
je 0x41a638
mov al, byte [edx + 0xc6]
or dword [esi + 0x1cd0], 8
mov byte [esi + 0x1d0d], al
mov dword [esi + 0x1cdc], 1
mov eax, dword [edi + 0x90]
and eax, 0x1c0
cmp eax, 0x80
jne 0x41a661
test edx, edx
je 0x41a661
mov eax, dword [edx + 0x34]
or dword [esi + 0x1cd0], 0x100
mov dword [esi + 0x1d2c], eax
or dword [esi + 0x1cd0], 0x400
lea eax, [ebp - 0x18]
movups xmm0, xmmword [edi + 0x48]
movups xmmword [esi + 0x1d34], xmm0
movups xmm0, xmmword [edi + 0x58]
movups xmmword [esi + 0x1d44], xmm0
push dword [edi]
push str.DockNode__02X
push 0x14
push eax
call fcn.004037d0
mov esi, dword [0x495280]
lea eax, [ebp - 0x54]
add esp, 0x10
mov dword [ebp - 0x54], 1
movss xmm1, dword [esi + 0x159c]
lea ecx, [esi + 0x1d7c]
movss xmm0, dword [esi + 0x15a0]
push eax
movss dword [ebp - 0x50], xmm1
movss dword [ebp - 0x4c], xmm0
call fcn.00420620
push 0x20081139
xor edx, edx
mov dword [esi + 0x159c], 0
lea ecx, [ebp - 0x18]
mov dword [esi + 0x15a0], 0
call fcn.0040d2f0
add esp, 4
call fcn.00404110
mov eax, dword [ebp - 0x44]
mov byte [ebp - 0x31], 1
mov edx, dword [eax + 0x1c48]
mov dword [edi + 0x68], edx
mov dword [ebp - 0x3c], edx
movss xmm0, dword [edx + 0x44]
movss xmm1, dword [edx + 0x48]
mov dword [edx + 0x3c0], edi
movss dword [edx + 0x108], xmm0
movss dword [edx + 0x10c], xmm1
movss dword [edi + 0x2c], xmm0
movss dword [edi + 0x30], xmm1
mov ecx, dword [edx + 0x50]
mov eax, dword [edx + 0x4c]
mov dword [edi + 0x38], ecx
mov ecx, dword [edi + 0x68]
mov dword [edi + 0x34], eax
cmp byte [ecx + 0xc9], 0
je 0x41a751
call fcn.00410720
mov esi, dword [0x495280]
jmp 0x41a762
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x3c], eax
mov dword [edi + 0x68], eax
mov eax, dword [edi + 0x90]
and eax, 0xfffffe00
mov dword [edi + 0x90], eax
test byte [edi + 0x94], 0x40
je 0x41a84e
mov ecx, dword [edi + 0x68]
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x41a84e
call fcn.004107a0
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x88]
call fcn.004058c0
mov byte [esi + 0x1e6a], 1
mov cl, 1
mov byte [esi + 0x1c92], 1
mov eax, dword [edx + 0x360]
movss xmm2, dword [esi + 0x38c]
movss xmm1, dword [esi + 0x390]
movaps xmm0, xmm2
subss xmm0, dword [eax + 0x44]
subss xmm1, dword [eax + 0x48]
movss dword [esi + 0x1ca8], xmm0
movss dword [esi + 0x1cac], xmm1
test byte [edx + 8], 4
jne 0x41a7f6
mov eax, dword [edx + 0x360]
test byte [eax + 8], 4
je 0x41a7f8
xor cl, cl
mov eax, dword [edx + 0x3c0]
test eax, eax
je 0x41a80f
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x41a80f
test byte [eax + 8], 4
jne 0x41a819
test cl, cl
je 0x41a819
mov dword [esi + 0x1c58], edx
movss xmm0, dword [esi + 0x390]
subss xmm2, dword [edi + 0x2c]
subss xmm0, dword [edi + 0x30]
mov dword [esi + 0x1c58], edx
movss dword [esi + 0x1ca8], xmm2
movss dword [esi + 0x1cac], xmm0
and byte [edi + 0x94], 0xbf
mov esi, dword [0x495280]
mov ecx, dword [ebp - 0x3c]
cmp dword [edi + 0x10], 0
jne 0x41a8cc
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x1e18]
test eax, eax
je 0x41a884
mov eax, dword [eax + 0x35c]
mov edx, dword [eax + 0x3bc]
test edx, edx
je 0x41a884
cmp dword [eax + 0x358], ecx
jne 0x41a884
mov eax, dword [edx]
mov dword [edi + 0x84], eax
mov edx, dword [ebp - 0x40]
test ecx, ecx
je 0x41a8cf
mov eax, edx
and eax, 8
mov dword [ebp - 0x38], eax
je 0x41a8cf
mov ecx, dword [ecx + 0x2c4]
sub esp, 8
add ecx, 0x78
mov byte [ebp - 0x2b], 1
call fcn.0042b190
mov eax, dword [ebp - 0x3c]
push 1
mov ecx, dword [eax + 0x2c4]
push ecx
add ecx, 0x78
call fcn.0042b6c0
mov esi, dword [0x495280]
mov edx, dword [ebp - 0x38]
mov al, byte [ebp - 0x2b]
jmp 0x41a8da
mov edx, dword [ebp - 0x40]
xor al, al
and edx, 8
mov byte [ebp - 0x2b], al
mov dword [ebp - 0x38], edx
cmp dword [edi + 0x10], 0
mov ecx, dword [edi + 0x70]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x40], ecx
jne 0x41ab06
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x41ab06
test edx, edx
je 0x41ab06
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x41ab06
cmp dword [edx + 0x14], 0
jne 0x41ab06
cmp dword [edx + 0x1c], 0
jne 0x41ab06
cmp byte [esi + 0x1f5c], 0
lea edx, [esi + 0x1f6c]
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x30], 0
cmove edx, dword [ebp - 0x30]
mov byte [ebp - 0x2a], 1
mov dword [ebp - 0x30], edx
mov byte [ebp - 0x29], al
mov dword [ebp - 0x38], esi
test edx, edx
je 0x41a9d8
cmp dword [edx + 0x10], 0xffffffff
je 0x41a9ca
add edx, 0x14
mov eax, str._IMWINDOW
mov cl, byte [eax]
cmp cl, byte [edx]
mov byte [ebp - 0x2c], cl
mov ecx, dword [ebp - 0x3c]
jne 0x41a991
cmp byte [ebp - 0x2c], 0
je 0x41a98d
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
mov byte [ebp - 0x2c], cl
mov ecx, dword [ebp - 0x3c]
jne 0x41a991
add eax, 2
add edx, 2
cmp byte [ebp - 0x2c], 0
jne 0x41a961
xor eax, eax
jmp 0x41a996
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41a9ca
mov edx, dword [ebp - 0x30]
mov al, byte [ebp - 0x2b]
mov byte [ebp - 0x29], al
mov dword [ebp - 0x38], esi
mov edx, dword [edx]
mov edx, dword [edx]
call fcn.0041bfb0
test al, al
je 0x41a9d5
mov al, byte [ebp - 0x2b]
mov ecx, dword [edi + 0x10]
mov dl, byte [ebp - 0x2a]
mov dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 0x29], al
jmp 0x41ab1e
mov al, byte [ebp - 0x2b]
mov byte [ebp - 0x29], al
mov dword [ebp - 0x38], esi
jmp 0x41a9d8
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
mov edx, esi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41a9ed
mov edx, eax
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x41a9e4
movss xmm4, dword [esi + 0x2c]
comiss xmm4, dword [edx + 0x2c]
movss xmm6, dword [edx + 0x30]
movaps xmm3, xmm4
movss xmm1, dword [esi + 0x30]
movaps xmm7, xmm6
movss xmm5, dword [edx + 0x2c]
movaps xmm2, xmm1
addss xmm5, dword [edx + 0x34]
addss xmm7, dword [edx + 0x38]
addss xmm3, dword [esi + 0x34]
addss xmm2, dword [esi + 0x38]
movss xmm0, dword [0x489214]
jbe 0x41aa30
addss xmm4, xmm0
comiss xmm5, xmm3
jbe 0x41aa39
subss xmm3, xmm0
comiss xmm1, xmm6
jbe 0x41aa42
addss xmm1, xmm0
comiss xmm7, xmm2
jbe 0x41aa4b
subss xmm2, xmm0
comiss xmm4, xmm3
ja 0x41aaf8
comiss xmm1, xmm2
ja 0x41aaf8
subss xmm3, xmm4
movaps xmm0, xmm4
subss xmm2, xmm1
cvttss2si esi, xmm3
cvttss2si edx, xmm2
mov word [ebp - 0x30], si
mov word [ebp - 0x2e], dx
mov eax, dword [ebp - 0x30]
mov dword [ecx + 0x288], eax
subss xmm0, dword [ecx + 0x44]
cvttss2si eax, xmm0
movaps xmm0, xmm1
subss xmm0, dword [ecx + 0x48]
mov word [ebp - 0x30], ax
cvttss2si eax, xmm0
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 0x28c], eax
mov ecx, dword [ecx + 0x358]
mov word [ebp - 0x2e], dx
mov word [ebp - 0x30], si
mov eax, dword [ebp - 0x30]
mov dword [ecx + 0x288], eax
subss xmm4, dword [ecx + 0x44]
subss xmm1, dword [ecx + 0x48]
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x38], edx
mov dl, byte [ebp - 0x2a]
cvttss2si eax, xmm4
mov word [ebp - 0x30], ax
cvttss2si eax, xmm1
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 0x28c], eax
mov al, byte [ebp - 0x29]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0x29], al
jmp 0x41ab1e
mov ecx, dword [edi + 0x10]
mov esi, dword [ebp - 0x3c]
mov al, byte [ebp - 0x29]
mov dl, byte [ebp - 0x2a]
jmp 0x41ab1e
mov esi, dword [ebp - 0x3c]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0x2a], 0
mov dl, byte [ebp - 0x2a]
mov byte [ebp - 0x29], al
test esi, esi
je 0x41abce
mov byte [ebp - 0x2c], dl
mov ah, al
mov byte [ebp - 0x2b], ah
test ecx, ecx
jne 0x41ab4f
push dword [esi + 0x50]
xor dl, dl
mov ecx, edi
push dword [esi + 0x4c]
push dword [esi + 0x48]
push dword [esi + 0x44]
call fcn.0041d810
add esp, 0x10
mov ecx, edi
call fcn.0041db60
mov dl, byte [ebp - 0x2c]
mov ah, byte [ebp - 0x2b]
cmp dword [edi + 0x14], 0
jne 0x41abce
cmp dword [edi + 0x1c], 0
jne 0x41abce
test byte [edi + 0x94], 1
mov al, ah
mov byte [ebp - 0x2a], dl
je 0x41abd1
cmp dword [ebp - 0x38], 0
mov byte [ebp - 0x2a], dl
jne 0x41abd1
movss xmm0, dword [edi + 0x34]
lea edx, [edi + 0x2c]
addss xmm0, dword [edx]
movss xmm1, dword [0x4891cc]
push 0
push ecx
mov ecx, 0x27
mov dword [esp], 0
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [edi + 0x38]
addss xmm0, dword [edx + 4]
movss dword [ebp - 0x4c], xmm0
call fcn.00403ea0
mov ecx, dword [esi + 0x2c4]
push eax
lea eax, [ebp - 0x50]
push eax
push edx
call fcn.0042ad40
mov cl, byte [ebp - 0x2c]
mov al, byte [ebp - 0x2b]
mov byte [ebp - 0x2a], cl
jmp 0x41abd1
mov al, byte [ebp - 0x29]
test al, al
je 0x41acee
test byte [edi + 0x94], 1
je 0x41acee
mov ecx, dword [esi + 0x2c4]
push 0
push ecx
add ecx, 0x78
call fcn.0042b6c0
cmp byte [ebp - 0x2a], 0
lea edx, [edi + 0x2c]
je 0x41ac95
mov eax, dword [ebp - 0x40]
sub esp, 0x10
movss xmm2, dword [edi + 0x30]
mov ecx, 2
movss dword [ebp - 0x54], xmm2
addss xmm2, dword [edi + 0x38]
movss xmm0, dword [eax + 0x2c]
movss xmm1, dword [eax + 0x30]
movss dword [ebp - 0x28], xmm0
addss xmm0, dword [eax + 0x34]
movss dword [ebp - 0x24], xmm1
addss xmm1, dword [eax + 0x38]
mov eax, esp
movss dword [ebp - 0x4c], xmm2
sub esp, 0x10
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [edx]
movss dword [ebp - 0x58], xmm0
addss xmm0, dword [edi + 0x34]
movss dword [ebp - 0x1c], xmm1
movss xmm1, dword [0x4891cc]
movss dword [ebp - 0x50], xmm0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [eax], xmm0
call fcn.00403ea0
mov ecx, dword [esi + 0x2c4]
xorps xmm2, xmm2
mov edx, eax
call fcn.0042f850
add esp, 0x20
jmp 0x41acdf
movss xmm0, dword [edi + 0x34]
addss xmm0, dword [edx]
movss xmm1, dword [0x4891cc]
push 0
push ecx
mov ecx, 2
mov dword [esp], 0
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [edi + 0x38]
addss xmm0, dword [edx + 4]
movss dword [ebp - 0x4c], xmm0
call fcn.00403ea0
mov ecx, dword [esi + 0x2c4]
push eax
lea eax, [ebp - 0x50]
push eax
push edx
call fcn.0042ad40
mov ecx, dword [esi + 0x2c4]
push ecx
add ecx, 0x78
call fcn.0042b2b0
test esi, esi
je 0x41ad03
cmp dword [edi + 0x1c], 0
jle 0x41ad03
mov edx, esi
mov ecx, edi
call fcn.0041aff0
jmp 0x41ad1d
mov al, byte [edi + 0x94]
and al, 0xef
mov dword [edi + 0x8c], 0
and al, 0xfd
mov byte [edi + 0x94], al
mov eax, dword [edi + 0x28]
test eax, eax
je 0x41ad2b
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x41ad39
cmp dword [edi + 0x1c], 0
jle 0x41ad3f
mov eax, dword [edi + 0x24]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x88], eax
test esi, esi
je 0x41ad7c
test byte [edi + 0x94], 1
je 0x41ad7c
cmp dword [edi + 0x10], 0
jne 0x41ad7c
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x1c58]
test eax, eax
je 0x41ad67
cmp dword [eax + 0x360], esi
je 0x41ad7c
mov ecx, esi
call fcn.0041ebb0
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x1be0]
mov dword [edi + 0x7c], eax
jmp 0x41ad8c
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x1be0]
mov dword [edi + 0x7c], eax
test esi, esi
je 0x41adb1
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x41ad98
call fcn.0041a020
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x41ada4
call fcn.0041a020
cmp dword [edi + 0x10], 0
jne 0x41adb1
mov ecx, esi
call fcn.0040bf20
cmp byte [ebp - 0x31], 0
je 0x41adbc
call fcn.00410530
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00472e83
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret