Function at 0x41a238
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, 0x46c7ba
call fcn.00452f1d
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.00401326
lea esi, [ebp - 0x3f4]
mov dword [ebp - 4], ebx
call fcn.004177b7
test eax, eax
jne 0x41a296
mov ecx, dword [ebp - 0x3f4]
add ecx, 0xfffffff0
call fcn.004017df
xor eax, eax
call fcn.00452fa0
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 0x41a306
push str.CreateFile_failed_for
lea ecx, [ebp - 0x3dc]
call fcn.004012e2
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.00411336
mov ecx, dword [ebp - 0x3dc]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x3f4]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, ebx
jmp 0x41a28e
call fcn.0043f3c0
push eax
lea ecx, [ebp - 0x3f0]
call fcn.004013a1
push str.IDS_BAL_DOWNLOADPROGRESS
lea ecx, [ebp - 0x3e0]
mov byte [ebp - 4], 2
call fcn.004012e2
lea edi, [ebp - 0x3f0]
lea ecx, [ebp - 0x3e0]
mov esi, 0x4b76d8
mov byte [ebp - 4], 3
call fcn.0040a83c
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3e0]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x414], eax
call fcn.0041a022
push 0x10000
mov dword [ebp - 0x400], eax
mov dword [ebp - 0x3fc], edx
call fcn.0043f017
pop ecx
mov dword [ebp - 0x3e0], eax
jmp 0x41a4c8
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 0x41a4d9
cmp dword [ebp - 0x3e8], ebx
je 0x41a514
mov eax, dword [0x4b7c18]
mov dword [ebp - 0x3ec], eax
cmp dword [ebp + 0xc], ebx
je 0x41a4a0
cmp eax, ebx
je 0x41a4a0
push ebx
push 1
call fcn.0040a0e1
add esi, dword [ebp - 0x3e8]
push ebx
adc dword [ebp - 0x414], ebx
push 0x64
push dword [ebp - 0x414]
push esi
call fcn.004568a0
push dword [ebp - 0x3fc]
push dword [ebp - 0x400]
push edx
push eax
call fcn.0045b860
push 0x3b8
mov dword [ebp - 0x3d8], eax
lea eax, [ebp - 0x3cc]
push ebx
push eax
mov dword [ebp - 0x3d0], ebx
call fcn.00450cb0
add esp, 0xc
push dword [ebp - 0x3d8]
mov eax, 0x100
push dword [ebp - 0x3f0]
lea edi, [ebp - 0x3b8]
call fcn.0041c7f4
pop ecx
pop ecx
mov eax, edi
push eax
lea ecx, [ebp - 0x404]
call fcn.004012e2
mov byte [ebp - 4], 9
mov edi, dword [ebp - 0x3ec]
lea eax, [ebp - 0x404]
mov ecx, edi
call fcn.00428ec0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x404]
add ecx, 0xfffffff0
call fcn.004017df
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 0x41a61b
cmp dword [0x4b7798], ebx
je 0x41a38a
jmp 0x41a65f
push str.InternetReadFile_failed:
lea ecx, [ebp - 0x3d8]
call fcn.004012e2
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x3d8]
push eax
push 2
call fcn.00411806
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3d8]
add esp, 0xc
jmp 0x41a657
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 0x41a5b5
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x41a59f
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 0x41a5f3
push str.SetFileTime_failed:
lea ecx, [ebp - 0x3d4]
call fcn.004012e2
mov byte [ebp - 4], 5
jmp 0x41a5c9
push str.unable_to_convert_st_to_ft
lea ecx, [ebp - 0x3d4]
call fcn.004012e2
mov byte [ebp - 4], 6
jmp 0x41a5c9
push str.QUERY_LAST_MODIFIED_failed:
lea ecx, [ebp - 0x3d4]
call fcn.004012e2
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 2
call fcn.00411806
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3d4]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
push str.Finished_writing_file
lea ecx, [ebp - 0x3d4]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x3d4]
push eax
push 2
mov byte [ebp - 4], 8
call fcn.00411806
add esp, 0xc
jmp 0x41a64d
push str.Error_writing_data:
lea ecx, [ebp - 0x3d4]
call fcn.004012e2
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.00411336
add esp, 0x10
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3d4]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x3e4], ebx
je 0x41a673
push dword [ebp - 0x3e4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3e0]
call fcn.0043f022
pop ecx
cmp dword [0x4b7798], ebx
jne 0x41a68f
cmp dword [ebp - 0x3dc], ebx
jne 0x41a6d2
push str.Operation_canceled_or_data_write_error__cleanup_file__
lea ecx, [ebp - 0x3d8]
call fcn.004012e2
mov esi, dword [ebp - 0x408]
push ebx
push esi
lea eax, [ebp - 0x3d8]
push eax
push 2
mov byte [ebp - 4], 0xb
call fcn.00411336
mov ecx, dword [ebp - 0x3d8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x3f0]
add ecx, 0xfffffff0
call fcn.004017df
mov ebx, dword [ebp - 0x3dc]
jmp 0x41a2f4