Function at 0x40afb2
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41b04d
call fcn.0040e710
push ecx
mov eax, 0x1144
call fcn.0040eb40
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
push 0x41e76c
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 - 0x1c], eax
pop ecx
test eax, eax
jne 0x40b049
push edi
mov ecx, 0x44fc90
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 0x40b073
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0040b455
test eax, eax
jne 0x40b073
push edi
mov ecx, 0x44fc90
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push str.init_network_error.
jmp 0x40b00b
cmp dword [ebp + 0x1c], edi
je 0x40b082
push dword [ebp + 0x1c]
mov ecx, esi
call fcn.0040b761
mov ecx, esi
call fcn.0040aeb2
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
mov ecx, esi
call fcn.0040b5cc
cmp byte [esi + 0x1024], 0
mov eax, 0x80000002
push edi
push edi
push 2
pop ecx
cmove eax, ecx
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x101c]
push eax
push 1
push dword [ebp + 8]
call sub.mfc140.dll_Ordinal_11940
mov ebx, eax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], ebx
push eax
call fcn.0040b3f2
test ebx, ebx
je 0x40b2eb
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 - 0x14], eax
test eax, eax
je 0x40b2ca
push dword [ebp - 0x1c]
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 - 0x14]
add esp, 0x10
add dword [ebp + 0x1c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0040b3f2
mov ecx, eax
call fcn.0040ad3e
lea ecx, [ebp - 0x48]
call fcn.0040b40d
fstp qword [ebp - 0x18]
movsd xmm2, qword [ebp - 0x18]
comisd xmm2, xmmword [0x421948]
jbe 0x40b259
mov ecx, dword [ebp + 0x1c]
mov eax, ecx
movsd xmm3, qword [0x421958]
shr eax, 0x1f
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x421990]
mulsd xmm1, xmm3
movsd qword [ebp - 0x18], xmm1
movaps xmm0, xmm1
divsd xmm0, xmm2
movsd qword [esi + 0x1058], xmm0
cmp ecx, 0x100000
jae 0x40b1f7
lea ecx, [ebp + 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_316]
movsd xmm0, qword [esi + 0x1058]
lea eax, [ebp + 0x18]
sub esp, 0x10
mov byte [ebp - 4], 7
movsd qword [esp + 8], xmm0
movsd xmm0, qword [ebp - 0x18]
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.0040b664
lea ecx, [ebp + 0x18]
jmp 0x40b2b7
mulsd xmm1, xmm3
lea ecx, [ebp + 8]
movsd qword [ebp - 0x18], xmm1
call dword [sym.imp.mfc140.dll_Ordinal_316]
movsd xmm0, qword [esi + 0x1058]
lea eax, [ebp + 8]
sub esp, 0x10
mov byte [ebp - 4], 8
movsd qword [esp + 8], xmm0
movsd xmm0, qword [ebp - 0x18]
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.0040b664
lea ecx, [ebp + 8]
jmp 0x40b2b7
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 9
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.0040b664
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x20]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x421990]
movsd qword [esi + 0x1058], xmm0
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140.dll_Ordinal_1044]
cmp dword [esi + 4], edi
je 0x40b0ea
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 4], 3
call dword [eax + 0x58]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 4]
push dword [ebp - 0x1c]
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.0040b5cc
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 0x40b038