Function at 0x41fddb
Capabilities:
Clear file content
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Timestomp file
Write file on windows

Disassembly:
push 0x414
mov eax, 0x475d94
call fcn.0045bedd
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x3f4]
mov dword [ebp - 0x3d4], eax
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x3dc], ebx
call fcn.004020ea
lea esi, [ebp - 0x3f4]
mov dword [ebp - 4], ebx
call fcn.0041c6d0
test eax, eax
jne 0x41fe39
mov ecx, dword [ebp - 0x3f4]
add ecx, 0xfffffff0
call fcn.004025d2
xor eax, eax
call fcn.0045bf60
ret 0x10
mov eax, dword [edi]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3e4], eax
cmp eax, 0xffffffff
jne 0x41fea9
push str.CreateFile_failed_for
lea ecx, [ebp - 0x3dc]
call fcn.004020a6
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x3dc]
push eax
push 2
call fcn.00414e01
mov ecx, dword [ebp - 0x3dc]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x3f4]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, ebx
jmp 0x41fe31
call fcn.0044825c
push eax
lea ecx, [ebp - 0x3f0]
call fcn.0041872d
push str.IDS_BAL_DOWNLOADPROGRESS
lea ecx, [ebp - 0x3e0]
mov byte [ebp - 4], 2
call fcn.004020a6
lea edi, [ebp - 0x3f0]
lea ecx, [ebp - 0x3e0]
mov esi, 0x4c46e8
mov byte [ebp - 4], 3
call fcn.0040e2a6
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3e0]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x414], eax
call fcn.0041fb92
push 0x10000
mov dword [ebp - 0x400], eax
mov dword [ebp - 0x3fc], edx
call fcn.00447e91
pop ecx
mov dword [ebp - 0x3e0], eax
jmp 0x420069
lea eax, [ebp - 0x3e8]
push eax
push 0x10000
push dword [ebp - 0x3e0]
mov dword [ebp - 0x3e8], ebx
push dword [ebp - 0x3d4]
mov dword [ebp - 0x40c], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x42007a
cmp dword [ebp - 0x3e8], ebx
je 0x4200b5
mov eax, dword [0x4c4c30]
mov dword [ebp - 0x3ec], eax
cmp dword [ebp + 0xc], ebx
je 0x420041
cmp eax, ebx
je 0x420041
push ebx
call fcn.0040db48
add esi, dword [ebp - 0x3e8]
push ebx
adc dword [ebp - 0x414], ebx
push 0x64
push dword [ebp - 0x414]
push esi
call fcn.0045f860
push dword [ebp - 0x3fc]
push dword [ebp - 0x400]
push edx
push eax
call fcn.00462aa0
push 0x3b8
mov dword [ebp - 0x3d8], eax
lea eax, [ebp - 0x3cc]
push ebx
push eax
mov dword [ebp - 0x3d0], ebx
call fcn.00459cf0
add esp, 0xc
push dword [ebp - 0x3d8]
mov eax, 0x100
push dword [ebp - 0x3f0]
lea edi, [ebp - 0x3b8]
call fcn.00422807
pop ecx
pop ecx
mov eax, edi
push eax
lea ecx, [ebp - 0x404]
call fcn.004020a6
mov byte [ebp - 4], 9
mov edi, dword [ebp - 0x3ec]
lea eax, [ebp - 0x404]
mov ecx, edi
call fcn.00431afd
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x404]
add ecx, 0xfffffff0
call fcn.004025d2
push dword [ebp - 0x3d8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x188]
push ebx
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x3e8]
push dword [ebp - 0x3e0]
push dword [ebp - 0x3e4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4201bc
cmp dword [0x4c47a8], ebx
je 0x41ff2d
jmp 0x420200
push str.InternetReadFile_failed:
lea ecx, [ebp - 0x3d8]
call fcn.004020a6
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x3d8]
push eax
push 2
call fcn.004152d1
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3d8]
add esp, 0xc
jmp 0x4201f8
push dword [ebp - 0x3e4]
mov dword [ebp - 0x3dc], 1
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x4000000b
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3ec], 0x10
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x420156
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x420140
lea eax, [ebp - 0x400]
push eax
push ebx
push eax
push dword [ebp - 0x3e4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x420194
push str.SetFileTime_failed:
lea ecx, [ebp - 0x3d4]
call fcn.004020a6
mov byte [ebp - 4], 5
jmp 0x42016a
push str.unable_to_convert_st_to_ft
lea ecx, [ebp - 0x3d4]
call fcn.004020a6
mov byte [ebp - 4], 6
jmp 0x42016a
push str.QUERY_LAST_MODIFIED_failed:
lea ecx, [ebp - 0x3d4]
call fcn.004020a6
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 2
call fcn.004152d1
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3d4]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
push str.Finished_writing_file
lea ecx, [ebp - 0x3d4]
call fcn.004020a6
push ebx
lea eax, [ebp - 0x3d4]
push eax
push 2
mov byte [ebp - 4], 8
call fcn.004152d1
add esp, 0xc
jmp 0x4201ee
push str.Error_writing_data:
lea ecx, [ebp - 0x3d4]
call fcn.004020a6
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x408]
lea eax, [ebp - 0x3d4]
push eax
push 2
call fcn.00414e01
add esp, 0x10
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3d4]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x3e4], ebx
je 0x420214
push dword [ebp - 0x3e4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3e0]
call fcn.00447e9c
pop ecx
cmp dword [0x4c47a8], ebx
jne 0x420230
cmp dword [ebp - 0x3dc], ebx
jne 0x420273
push str.Operation_canceled_or_data_write_error__cleanup_file__
lea ecx, [ebp - 0x3d8]
call fcn.004020a6
mov esi, dword [ebp - 0x408]
push ebx
push esi
lea eax, [ebp - 0x3d8]
push eax
push 2
mov byte [ebp - 4], 0xb
call fcn.00414e01
mov ecx, dword [ebp - 0x3d8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x3f0]
add ecx, 0xfffffff0
call fcn.004025d2
mov ebx, dword [ebp - 0x3dc]
jmp 0x41fe97