Function at 0x40d8e1
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x424d67
call fcn.00423584
push ecx
mov eax, 0x1144
call fcn.00423690
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
push 0x42d0f4
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 3
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
pop ecx
xor edi, edi
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
jne 0x40d978
push edi
mov ecx, 0x45f1f4
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push str.can_not_open_file_to_save..
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0x20]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x1c
cmp dword [esi + 0x101c], edi
jne 0x40d9a2
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0040d4b0
test eax, eax
jne 0x40d9a2
push edi
mov ecx, 0x45f1f4
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push str.init_network_error.
jmp 0x40d93a
cmp dword [ebp + 0x1c], edi
je 0x40d9b1
push dword [ebp + 0x1c]
mov ecx, esi
call fcn.0040d333
mov ecx, esi
call fcn.0040e073
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
mov ecx, esi
call fcn.0040de56
push edi
push edi
push 2
mov byte [ebp - 4], 4
mov eax, SysStringLen
cmp byte [esi + 0x1024], 0
pop ecx
cmove eax, ecx
mov ecx, dword [esi + 0x101c]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_11940]
mov ebx, eax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], ebx
call fcn.0040e99f
test ebx, ebx
je 0x40dc14
mov byte [ebp - 4], 6
mov dword [ebp + 0x1c], edi
mov eax, dword [ebx]
lea ecx, [ebp - 0x1154]
push 0xfff
push ecx
mov ecx, ebx
call dword [eax + 0x40]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40dbf3
push dword [ebp - 0x14]
push 1
push eax
lea eax, [ebp - 0x1154]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
add dword [ebp + 0x1c], eax
add esp, 0x10
call fcn.0040e99f
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.0040e764
lea ecx, [ebp - 0x48]
call fcn.0040e6bb
movaps xmm2, xmm0
comisd xmm2, xmmword [0x432220]
jbe 0x40db82
mov ecx, dword [ebp + 0x1c]
mov eax, ecx
movsd xmm3, qword [0x432230]
shr eax, 0x1f
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x432280]
mulsd xmm1, xmm3
movsd qword [ebp - 0x1c], xmm1
movaps xmm0, xmm1
divsd xmm0, xmm2
movsd qword [esi + 0x1058], xmm0
cmp ecx, 0x100000
jae 0x40db20
lea ecx, [ebp + 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_316]
sub esp, 0x10
mov byte [ebp - 4], 7
movsd xmm0, qword [esi + 0x1058]
lea eax, [ebp + 0x18]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [ebp - 0x1c]
movsd qword [esp], xmm0
push dword [ebp + 0x20]
push str._s..___Read__0.01f_KBytes___0.1f_KB_s_
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0x1c
lea eax, [ebp + 0x18]
push dword [ebp + 0x1c]
push ecx
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
mov ecx, esi
call fcn.0040deee
lea ecx, [ebp + 0x18]
jmp 0x40dbe0
mulsd xmm1, xmm3
lea ecx, [ebp + 8]
movsd qword [ebp - 0x1c], xmm1
call dword [sym.imp.mfc140.dll_Ordinal_316]
sub esp, 0x10
mov byte [ebp - 4], 8
movsd xmm0, qword [esi + 0x1058]
lea eax, [ebp + 8]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [ebp - 0x1c]
movsd qword [esp], xmm0
push dword [ebp + 0x20]
push str._s..___Read__0.01f_MBytes___0.1f_KB_s_
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0x1c
lea eax, [ebp + 8]
push dword [ebp + 0x1c]
push ecx
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
mov ecx, esi
call fcn.0040deee
lea ecx, [ebp + 8]
jmp 0x40dbe0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push dword [ebp + 0x1c]
mov byte [ebp - 4], 9
lea eax, [ebp - 0x20]
push dword [ebp + 0x20]
push str._s..___Read__d_Bytes
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0x10
lea eax, [ebp - 0x20]
push dword [ebp + 0x1c]
push ecx
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
mov ecx, esi
call fcn.0040deee
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x20]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x432280]
movsd qword [esi + 0x1058], xmm0
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140.dll_Ordinal_1044]
cmp dword [esi + 4], edi
je 0x40da19
mov dword [ebp - 4], 3
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x58]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 4]
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
mov ecx, esi
call fcn.0040de56
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0x20]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
xor eax, eax
inc eax
jmp 0x40d967