Function at 0x43f480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4eac74]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
push edi
push ecx
mov dword [esp + 0x28], eax
call fcn.004404c0
test esi, esi
jne 0x43f59d
push 0x58
lea eax, [esp + 0x34]
push esi
push eax
call fcn.004986c0
lea eax, [esp + 0xac]
mov byte [esp + 0xac], 0
mov dword [esp + 0x58], eax
add esp, 0xc
mov eax, dword [0x4ffd6c]
mov dword [esp + 0x30], 0x58
mov dword [esp + 0x5c], 0x4d2e88
mov dword [esp + 0x50], 0x80
mov eax, dword [eax + 0x2a3cc]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x40], 0x4d2e8c
mov dword [esp + 0x68], 8
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
test eax, eax
je 0x43fb85
lea esi, [esp + 0xa0]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f530
sub ecx, edx
test ecx, ecx
jle 0x43fb85
xor eax, eax
nop dword [eax]
nop word [eax + eax]
cmp byte [esp + eax + 0xa0], 0x2e
je 0x43f99f
inc eax
cmp eax, ecx
jl 0x43f550
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x124]
push 0x4d2ea4
push eax
call fcn.00434510
add esp, 0xc
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0xa4]
push 0x4d2eac
push eax
call fcn.00440ab0
add esp, 0xc
push 0x4d2eb0
push esi
call fcn.004a3dcc
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
je 0x43fb85
mov edx, dword [esp + 0x24]
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x28], esi
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov eax, dword [edx + 0x15c]
mov dword [esp + 0x14], eax
test eax, eax
je 0x43f644
mov eax, dword [edx + 0x154]
mov eax, dword [eax + 4]
mov dword [edx + 0x158], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x43f644
mov edi, dword [esp + 0x14]
nop word [eax + eax]
inc esi
mov dword [esp + 0x28], esi
mov eax, dword [edx + 0x108]
test ebx, ebx
je 0x43f613
cmp eax, ecx
jle 0x43f617
mov ebx, edx
cmp eax, ecx
cmovg ecx, eax
mov dword [esp + 0x1c], ecx
test edi, edi
je 0x43f63c
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x158]
mov eax, dword [eax + 4]
mov dword [edx + 0x158], eax
mov edx, dword [eax + 8]
test edx, edx
jne 0x43f600
mov edi, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
push edi
push 2
lea eax, [esp + 0x30]
push 1
push eax
call fcn.004a476a
push edi
push 4
lea eax, [esp + 0x34]
push 1
push eax
call fcn.004a476a
mov eax, dword [ebx + 0x10c]
lea edx, [esp + 0x34]
add esp, 0x20
mov eax, dword [eax + 0x114]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x2c]
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
jle 0x43f758
mov esi, dword [esp + 0x14]
movss xmm3, dword [0x4e009c]
add esi, 0x20
movss xmm2, dword [0x4e00a0]
nop word [eax + eax]
movss xmm1, dword [esi - 4]
xorps xmm0, xmm0
mulss xmm1, xmm3
comiss xmm0, xmm1
jbe 0x43f6ca
addss xmm1, xmm2
comiss xmm0, xmm1
ja 0x43f6c1
movaps xmm0, xmm3
minss xmm0, xmm1
push edi
push 1
push 1
cvttss2si eax, xmm0
mov byte [esp + 0x1b], al
lea eax, [esp + 0x1b]
push eax
call fcn.004a476a
movss xmm1, dword [esi]
xorps xmm0, xmm0
movss xmm3, dword [0x4e009c]
add esp, 0x10
mulss xmm1, xmm3
comiss xmm0, xmm1
jbe 0x43f719
movss xmm2, dword [0x4e00a0]
nop dword [eax + eax]
addss xmm1, xmm2
comiss xmm0, xmm1
ja 0x43f710
movaps xmm0, xmm3
minss xmm0, xmm1
push edi
push 1
push 1
cvttss2si eax, xmm0
mov byte [esp + 0x1b], al
lea eax, [esp + 0x1b]
push eax
call fcn.004a476a
movss xmm2, dword [0x4e00a0]
inc ebx
movss xmm3, dword [0x4e009c]
add esp, 0x10
add esi, 0x24
cmp ebx, dword [esp + 0x1c]
jl 0x43f6b0
mov esi, dword [esp + 0x20]
mov esi, dword [esi + 0x10c]
mov eax, dword [esi + 0x114]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esi + 0x114]
lea edx, [esp + 0x20]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x2c]
mov eax, dword [esi + 0x114]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov esi, dword [esp + 0x24]
cmp dword [esi + 0x15c], 0
je 0x43fb68
mov eax, dword [esi + 0x154]
mov eax, dword [eax + 4]
mov dword [esi + 0x158], eax
mov ebx, dword [eax + 8]
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x43fb68
mov eax, dword [ebx + 0x10c]
lea edx, [esp + 0x20]
push 0
push edx
push 0
mov eax, dword [eax + 0x114]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push edi
push 0xc
lea eax, [ebx + 0x11c]
push 1
push eax
call fcn.004a476a
push edi
push 0xc
lea eax, [ebx + 0x110]
push 1
push eax
call fcn.004a476a
movss xmm0, dword [0x4e00bc]
add esp, 0x20
movss xmm7, dword [0x4e0158]
movaps xmm2, xmm0
mov esi, dword [esp + 0x20]
movaps xmm3, xmm0
mov dword [esp + 0x8c], 0x461c4000
xor ecx, ecx
movss dword [esp + 0x90], xmm2
movaps xmm1, xmm0
movss dword [esp + 0x88], xmm3
movaps xmm4, xmm7
mov eax, dword [ebx + 0x108]
movaps xmm6, xmm7
movss dword [esp + 0x8c], xmm1
movaps xmm5, xmm7
test eax, eax
jle 0x43f8d6
movss dword [esp + 0x8c], xmm1
lea eax, [esi + 8]
movss xmm0, dword [eax - 8]
comiss xmm3, xmm0
jbe 0x43f87c
movaps xmm3, xmm0
movss dword [esp + 0x88], xmm3
movss xmm0, dword [eax - 8]
maxss xmm0, xmm6
movaps xmm6, xmm0
movss xmm0, dword [eax - 4]
comiss xmm1, xmm0
jbe 0x43f89e
movaps xmm1, xmm0
movss dword [esp + 0x8c], xmm1
movss xmm0, dword [eax - 4]
maxss xmm0, xmm5
movaps xmm5, xmm0
movss xmm0, dword [eax]
comiss xmm2, xmm0
jbe 0x43f8bf
movaps xmm2, xmm0
movss dword [esp + 0x90], xmm2
movss xmm0, dword [eax]
inc ecx
maxss xmm0, xmm4
add eax, 0x24
movaps xmm4, xmm0
cmp ecx, dword [ebx + 0x108]
jl 0x43f866
push edi
subss xmm6, xmm3
subss xmm5, xmm1
subss xmm4, xmm2
push 0xc
lea eax, [esp + 0x90]
push 1
push eax
movss dword [esp + 0xa4], xmm6
movss dword [esp + 0xa8], xmm5
movss dword [esp + 0xac], xmm4
call fcn.004a476a
push edi
push 0xc
lea eax, [esp + 0xac]
push 1
push eax
call fcn.004a476a
mov eax, dword [esp + 0x3c]
add esp, 0x20
xor ebx, ebx
test eax, eax
jle 0x43fa02
add esi, 0x10
mov eax, dword [esp + 0x14]
push edi
push 1
push 1
cmp ebx, dword [eax + 0x108]
jge 0x43f9bf
movss xmm0, dword [esi - 4]
mulss xmm0, dword [0x4e0068]
cvttss2si eax, xmm0
mov byte [esp + 0x1b], al
lea eax, [esp + 0x1b]
push eax
call fcn.004a476a
movss xmm0, dword [esi]
mulss xmm0, dword [0x4e0068]
push edi
push 1
push 1
cvttss2si eax, xmm0
mov byte [esp + 0x2b], al
lea eax, [esp + 0x2b]
push eax
call fcn.004a476a
movss xmm0, dword [esi + 4]
mulss xmm0, dword [0x4e0068]
cvttss2si eax, xmm0
mov byte [esp + 0x2f], al
jmp 0x43f9dd
cmp eax, ecx
jge 0x43f563
cmp eax, 0x80
jae 0x43fb9c
mov byte [esp + eax + 0xa0], 0
jmp 0x43f563
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], 0
push eax
call fcn.004a476a
push edi
push 1
lea eax, [esp + 0x27]
push 1
push eax
call fcn.004a476a
add esp, 0x20
lea eax, [esp + 0xf]
push edi
push 1
push 1
push eax
call fcn.004a476a
mov eax, dword [esp + 0x2c]
inc ebx
add esp, 0x10
add esi, 0x24
cmp ebx, eax
jl 0x43f935
xor esi, esi
test eax, eax
jle 0x43fb04
mov ebx, dword [esp + 0x20]
add ebx, 8
mov eax, dword [esp + 0x14]
push edi
push 2
push 1
cmp esi, dword [eax + 0x108]
jge 0x43fac0
movss xmm0, dword [ebx - 8]
subss xmm0, dword [esp + 0x94]
divss xmm0, dword [esp + 0xa0]
mulss xmm0, dword [0x4e00b8]
cvttss2si eax, xmm0
movzx eax, ax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call fcn.004a476a
movss xmm0, dword [ebx - 4]
subss xmm0, dword [esp + 0x9c]
push edi
push 2
push 1
divss xmm0, dword [esp + 0xb4]
mulss xmm0, dword [0x4e00b8]
cvttss2si eax, xmm0
movzx eax, ax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
call fcn.004a476a
movss xmm0, dword [ebx]
subss xmm0, dword [esp + 0xb0]
divss xmm0, dword [esp + 0xbc]
mulss xmm0, dword [0x4e00b8]
cvttss2si eax, xmm0
movzx eax, ax
mov dword [esp + 0x30], eax
jmp 0x43fae1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
call fcn.004a476a
push edi
push 2
lea eax, [esp + 0x28]
push 1
push eax
call fcn.004a476a
add esp, 0x20
lea eax, [esp + 0x10]
push edi
push 2
push 1
push eax
call fcn.004a476a
inc esi
add esp, 0x10
add ebx, 0x24
cmp esi, dword [esp + 0x1c]
jl 0x43fa13
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x10c]
mov eax, dword [esi + 0x114]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esi + 0x114]
lea edx, [esp + 0x2c]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x2c]
mov eax, dword [esi + 0x114]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov esi, dword [esp + 0x24]
cmp dword [esi + 0x15c], 0
je 0x43fb68
mov eax, dword [esi + 0x158]
mov eax, dword [eax + 4]
mov dword [esi + 0x158], eax
mov ebx, dword [eax + 8]
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x43f7c0
push edi
push 1
lea eax, [esp + 0x23]
mov byte [esp + 0x23], 0
push 1
push eax
call fcn.004a476a
push edi
call fcn.004a3ea0
add esp, 0x14
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00495a90
mov esp, ebp
pop ebp
ret 0xc
call fcn.00495bc2
int3