Function at 0x4582f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5754c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
je 0x458318
push dword [ebp + 8]
call fcn.00457f80
test esi, esi
jne 0x458406
push 0x58
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004d3200
lea eax, [ebp - 0x84]
mov dword [ebp - 0x210], 0x58
mov dword [ebp - 0x1f4], eax
add esp, 0xc
mov eax, dword [0x5778a8]
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x1e4], 0x52fa04
mov dword [ebp - 0x1f0], 0x80
mov dword [ebp - 0x204], str.PUMA_ANC_files
mov eax, dword [eax + 0x2a3cc]
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x1dc], 8
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
test eax, eax
je 0x458985
lea esi, [ebp - 0x84]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4583a8
sub ecx, edx
test ecx, ecx
jle 0x458985
xor eax, eax
nop dword [eax + eax]
cmp byte [ebp + eax - 0x84], 0x2e
je 0x4587aa
inc eax
cmp eax, ecx
jl 0x4583c0
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x184]
push str._s.anc
push eax
call fcn.00448430
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x84]
push 0x52ebe0
push eax
call fcn.00455aa0
add esp, 0x18
push 0x52fa28
push esi
call fcn.004fb479
mov esi, eax
add esp, 8
test esi, esi
je 0x458985
push ebx
add edi, 0x150
mov dword [ebp - 0x1b4], 0
xor ebx, ebx
mov dword [ebp - 0x1a8], 0
mov ecx, edi
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x1b8], edi
call fcn.00449da0
test eax, eax
je 0x45848a
inc dword [ebp - 0x1b4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 0x1a8]
test ebx, ebx
je 0x45846c
cmp ecx, edx
jle 0x458470
mov ebx, eax
cmp ecx, edx
cmovg edx, ecx
mov ecx, edi
mov dword [ebp - 0x1a8], edx
call fcn.00449e40
test eax, eax
jne 0x458452
mov dword [ebp - 0x1b0], ebx
push esi
push 2
lea eax, [ebp - 0x1b4]
push 1
push eax
call fcn.004fc7c8
push esi
push 4
lea eax, [ebp - 0x1a8]
push 1
push eax
call fcn.004fc7c8
mov ecx, dword [0x5778ac]
add esp, 0x20
push dword [ebx + 0x10c]
call fcn.0045e760
xor ebx, ebx
cmp dword [ebp - 0x1a8], ebx
jle 0x458594
movss xmm3, dword [0x52fa80]
lea edi, [eax + 0x20]
movss xmm2, dword [0x52fa84]
movss xmm1, dword [edi - 4]
xorps xmm0, xmm0
mulss xmm1, xmm3
comiss xmm0, xmm1
jbe 0x4584fb
addss xmm1, xmm2
comiss xmm0, xmm1
ja 0x4584f2
movaps xmm0, xmm3
minss xmm0, xmm1
push esi
push 1
push 1
cvttss2si eax, xmm0
mov byte [ebp - 0x19d], al
lea eax, [ebp - 0x19d]
push eax
call fcn.004fc7c8
movss xmm1, dword [edi]
xorps xmm0, xmm0
movss xmm3, dword [0x52fa80]
add esp, 0x10
mulss xmm1, xmm3
comiss xmm0, xmm1
jbe 0x458549
movss xmm2, dword [0x52fa84]
addss xmm1, xmm2
comiss xmm0, xmm1
ja 0x458540
movaps xmm0, xmm3
minss xmm0, xmm1
push esi
push 1
push 1
cvttss2si eax, xmm0
mov byte [ebp - 0x19d], al
lea eax, [ebp - 0x19d]
push eax
call fcn.004fc7c8
movss xmm2, dword [0x52fa84]
inc ebx
movss xmm3, dword [0x52fa80]
add esp, 0x10
add edi, 0x24
cmp ebx, dword [ebp - 0x1a8]
jl 0x4584e1
mov edi, dword [ebp - 0x1b8]
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [0x5778ac]
push dword [eax + 0x10c]
call fcn.0045e840
mov ecx, edi
call fcn.00449da0
mov ebx, eax
mov dword [ebp - 0x1b0], ebx
test ebx, ebx
je 0x458963
push dword [ebx + 0x10c]
mov ecx, dword [0x5778ac]
call fcn.0045e760
push esi
push 0xc
lea ecx, [ebx + 0x11c]
mov edi, eax
push 1
push ecx
mov dword [ebp - 0x1a4], edi
call fcn.004fc7c8
push esi
push 0xc
lea eax, [ebx + 0x110]
push 1
push eax
call fcn.004fc7c8
movss xmm0, dword [0x52fa8c]
add esp, 0x20
movss xmm7, dword [0x52fa90]
movaps xmm2, xmm0
movaps xmm3, xmm0
mov dword [ebp - 0x18c], 0x461c4000
movss dword [ebp - 0x188], xmm2
xor ecx, ecx
movss dword [ebp - 0x190], xmm3
movaps xmm1, xmm0
mov eax, dword [ebx + 0x108]
movaps xmm4, xmm7
movss dword [ebp - 0x18c], xmm1
movaps xmm6, xmm7
movaps xmm5, xmm7
test eax, eax
jle 0x4586cd
movss dword [ebp - 0x18c], xmm1
lea eax, [edi + 8]
nop
movss xmm0, dword [eax - 8]
comiss xmm3, xmm0
jbe 0x458675
movaps xmm3, xmm0
movss dword [ebp - 0x190], xmm3
movss xmm0, dword [eax - 8]
maxss xmm0, xmm6
movaps xmm6, xmm0
movss xmm0, dword [eax - 4]
comiss xmm1, xmm0
jbe 0x458696
movaps xmm1, xmm0
movss dword [ebp - 0x18c], xmm1
movss xmm0, dword [eax - 4]
maxss xmm0, xmm5
movaps xmm5, xmm0
movss xmm0, dword [eax]
comiss xmm2, xmm0
jbe 0x4586b6
movaps xmm2, xmm0
movss dword [ebp - 0x188], xmm2
movss xmm0, dword [eax]
inc ecx
maxss xmm0, xmm4
add eax, 0x24
movaps xmm4, xmm0
cmp ecx, dword [ebx + 0x108]
jl 0x458660
push esi
subss xmm6, xmm3
subss xmm5, xmm1
subss xmm4, xmm2
push 0xc
lea eax, [ebp - 0x190]
push 1
push eax
movss dword [ebp - 0x19c], xmm6
movss dword [ebp - 0x198], xmm5
movss dword [ebp - 0x194], xmm4
call fcn.004fc7c8
push esi
push 0xc
lea eax, [ebp - 0x19c]
push 1
push eax
call fcn.004fc7c8
mov eax, dword [ebp - 0x1a8]
add esp, 0x20
xor ebx, ebx
test eax, eax
jle 0x458817
add edi, 0x10
nop dword [eax]
mov eax, dword [ebp - 0x1b0]
push esi
push 1
push 1
cmp ebx, dword [eax + 0x108]
jge 0x4587ca
movss xmm0, dword [edi - 4]
mulss xmm0, dword [0x52fa7c]
cvttss2si eax, xmm0
mov byte [ebp - 0x19d], al
lea eax, [ebp - 0x19d]
push eax
call fcn.004fc7c8
movss xmm0, dword [edi]
mulss xmm0, dword [0x52fa7c]
push esi
push 1
push 1
cvttss2si eax, xmm0
mov byte [ebp - 0x19d], al
lea eax, [ebp - 0x19d]
push eax
call fcn.004fc7c8
movss xmm0, dword [edi + 4]
mulss xmm0, dword [0x52fa7c]
cvttss2si eax, xmm0
mov byte [ebp - 0x19d], al
jmp 0x4587ee
cmp eax, ecx
jge 0x4583d3
cmp eax, 0x80
jae 0x458997
mov byte [ebp + eax - 0x84], 0
jmp 0x4583d3
lea eax, [ebp - 0x19d]
mov byte [ebp - 0x19d], 0
push eax
call fcn.004fc7c8
push esi
push 1
lea eax, [ebp - 0x19d]
push 1
push eax
call fcn.004fc7c8
add esp, 0x20
lea eax, [ebp - 0x19d]
push esi
push 1
push 1
push eax
call fcn.004fc7c8
mov eax, dword [ebp - 0x1a8]
inc ebx
add esp, 0x10
add edi, 0x24
cmp ebx, eax
jl 0x458730
xor edi, edi
test eax, eax
jle 0x458931
mov ebx, dword [ebp - 0x1a4]
add ebx, 8
nop word [eax + eax]
mov eax, dword [ebp - 0x1b0]
push esi
push 2
push 1
cmp edi, dword [eax + 0x108]
jge 0x4588e3
movss xmm0, dword [ebx - 8]
subss xmm0, dword [ebp - 0x190]
divss xmm0, dword [ebp - 0x19c]
mulss xmm0, dword [0x52fa88]
cvttss2si eax, xmm0
movzx eax, ax
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.004fc7c8
movss xmm0, dword [ebx - 4]
subss xmm0, dword [ebp - 0x18c]
push esi
push 2
push 1
divss xmm0, dword [ebp - 0x198]
mulss xmm0, dword [0x52fa88]
cvttss2si eax, xmm0
movzx eax, ax
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.004fc7c8
movss xmm0, dword [ebx]
subss xmm0, dword [ebp - 0x188]
divss xmm0, dword [ebp - 0x194]
mulss xmm0, dword [0x52fa88]
cvttss2si eax, xmm0
movzx eax, ax
mov dword [ebp - 0x1a4], eax
jmp 0x45890a
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1a4], 0
push eax
call fcn.004fc7c8
push esi
push 2
lea eax, [ebp - 0x1a4]
push 1
push eax
call fcn.004fc7c8
add esp, 0x20
lea eax, [ebp - 0x1a4]
push esi
push 2
push 1
push eax
call fcn.004fc7c8
inc edi
add esp, 0x10
add ebx, 0x24
cmp edi, dword [ebp - 0x1a8]
jl 0x458830
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [0x5778ac]
push dword [eax + 0x10c]
call fcn.0045e840
mov ecx, dword [ebp - 0x1b8]
call fcn.00449e40
mov ebx, eax
mov dword [ebp - 0x1b0], eax
test ebx, ebx
jne 0x4585c2
push esi
push 1
lea eax, [ebp - 0x1a9]
mov byte [ebp - 0x1a9], 0
push 1
push eax
call fcn.004fc7c8
push esi
call fcn.004fb126
add esp, 0x14
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b2010
mov esp, ebp
pop ebp
ret 0xc
call fcn.004b2142
int3