Function at 0x4958c3
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4ae95b
call fcn.004ace8c
push ecx
mov eax, 0x1144
call fcn.004ac730
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
push 0x4d9fbc
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 0x49595a
push edi
mov ecx, 0x51f378
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 0x495984
push dword [ebp + 0x18]
mov ecx, esi
call fcn.00495492
test eax, eax
jne 0x495984
push edi
mov ecx, 0x51f378
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push str.init_network_error.
jmp 0x49591c
cmp dword [ebp + 0x1c], edi
je 0x495993
push dword [ebp + 0x1c]
mov ecx, esi
call fcn.00495315
mov ecx, esi
call fcn.00496055
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
mov ecx, esi
call fcn.00495e38
push edi
push edi
push 2
mov byte [ebp - 4], 4
mov eax, connect
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.00496981
test ebx, ebx
je 0x495bf6
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 0x495bd5
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.00496981
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.00496746
lea ecx, [ebp - 0x48]
call fcn.0049669d
movaps xmm2, xmm0
comisd xmm2, xmmword [0x4dfde8]
jbe 0x495b64
mov ecx, dword [ebp + 0x1c]
mov eax, ecx
movsd xmm3, qword [0x4dfdf8]
shr eax, 0x1f
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x4dfe60]
mulsd xmm1, xmm3
movsd qword [ebp - 0x1c], xmm1
movaps xmm0, xmm1
divsd xmm0, xmm2
movsd qword [esi + 0x1058], xmm0
cmp ecx, 0x100000
jae 0x495b02
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.00495ed0
lea ecx, [ebp + 0x18]
jmp 0x495bc2
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.00495ed0
lea ecx, [ebp + 8]
jmp 0x495bc2
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.00495ed0
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x20]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4dfe60]
movsd qword [esi + 0x1058], xmm0
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140.dll_Ordinal_1044]
cmp dword [esi + 4], edi
je 0x4959fb
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.00495e38
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 0x495949