Function at 0x421409
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 0x410
mov eax, 0x4886d4
call fcn.00464e7c
mov edi, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3e4], eax
mov dword [ebp - 0x41c], edi
mov eax, dword [edi]
sub eax, 0x10
mov dword [ebp - 0x3f8], esi
push eax
call fcn.00402d2a
add eax, 0x10
pop ecx
mov dword [ebp - 0x40c], eax
and dword [ebp - 4], esi
lea eax, [ebp - 0x40c]
push eax
call fcn.0041d9a2
test eax, eax
je 0x4214b2
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4214cc
push str.CreateFile_failed_for
lea ecx, [ebp - 0x3e8]
call fcn.0040279b
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 2
lea edx, [ebp - 0x3e8]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x3e8]
lea ecx, [ecx - 0x10]
call fcn.00402def
xor esi, esi
mov ecx, dword [ebp - 0x40c]
add ecx, 0xfffffff0
call fcn.00402def
mov eax, esi
call fcn.00464e26
ret 0x14
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x3fc]
call fcn.00402824
push str.IDS_BAL_DOWNLOADPROGRESS
lea ecx, [ebp - 0x3e8]
mov byte [ebp - 4], 2
call fcn.0040279b
lea eax, [ebp - 0x3fc]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x3e8]
mov ecx, 0x4e1f90
push eax
call fcn.0040c9da
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3e8]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x404], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x408], eax
call fcn.00421181
push 0x10000
mov dword [ebp - 0x400], eax
mov dword [ebp - 0x410], edx
call fcn.0044a8a2
cmp dword [0x4e2078], 0
pop ecx
mov dword [ebp - 0x3e8], eax
jne 0x42185a
jmp 0x421568
mov eax, dword [ebp - 0x3e8]
and dword [ebp - 0x3f0], 0
lea ecx, [ebp - 0x3f0]
and dword [ebp - 0x418], 0
push ecx
push 0x10000
push eax
push dword [ebp - 0x3e4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x421818
mov eax, dword [ebp - 0x3f0]
test eax, eax
je 0x421709
cmp dword [ebp + 0x10], 0
mov ecx, dword [0x4e250c]
mov dword [ebp - 0x3f4], ecx
je 0x4216a1
test ecx, ecx
je 0x4216a1
push 0
push ecx
call fcn.0040c14d
mov esi, dword [ebp - 0x404]
add esi, dword [ebp - 0x3f0]
mov eax, dword [ebp - 0x408]
push 0x64
pop ecx
adc eax, 0
mov dword [ebp - 0x404], esi
mov dword [ebp - 0x408], eax
mul ecx
push 0x64
pop edx
push dword [ebp - 0x410]
mov ecx, eax
mov eax, esi
push dword [ebp - 0x400]
mul edx
add ecx, edx
push ecx
push eax
call fcn.00484870
push 0x3bc
mov esi, eax
lea eax, [ebp - 0x3e0]
push 0
push eax
call fcn.00466990
add esp, 0xc
lea eax, [ebp - 0x3c8]
push esi
push dword [ebp - 0x3fc]
push 0x100
push eax
call fcn.00423e2a
add esp, 0x10
lea eax, [ebp - 0x3c8]
lea ecx, [ebp - 0x3ec]
push eax
call fcn.0040279b
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3ec]
push eax
mov byte [ebp - 4], 9
call fcn.00434e33
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3ec]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x3f4]
push esi
mov eax, dword [ecx]
mov esi, dword [eax + 0x1b0]
mov ecx, esi
call dword [0x4907c8]
mov ecx, dword [ebp - 0x3f4]
call esi
mov eax, dword [ebp - 0x3f0]
push 0
lea ecx, [ebp - 0x418]
push ecx
push eax
push dword [ebp - 0x3e8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4216ce
cmp dword [0x4e2078], 0
je 0x421562
jmp 0x421854
push str.Error_writing_data:
lea ecx, [ebp - 0x3ec]
call fcn.0040279b
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 2
lea edx, [ebp - 0x3ec]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3ec]
jmp 0x42184c
xor esi, esi
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
mov dword [ebp - 0x400], 0x10
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x400]
xor edi, edi
push edi
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4000000b
push dword [ebp - 0x3e4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42179e
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x421788
lea eax, [ebp - 0x414]
push eax
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4217da
push str.SetFileTime_failed:
lea ecx, [ebp - 0x3e4]
call fcn.0040279b
mov byte [ebp - 4], 5
jmp 0x4217b2
push str.unable_to_convert_st_to_ft
lea ecx, [ebp - 0x3e4]
call fcn.0040279b
mov byte [ebp - 4], 6
jmp 0x4217b2
push str.QUERY_LAST_MODIFIED_failed:
lea ecx, [ebp - 0x3e4]
call fcn.0040279b
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
lea edx, [ebp - 0x3e4]
pop ecx
call fcn.00413e51
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3e4]
lea ecx, [ecx - 0x10]
call fcn.00402def
push str.Finished_writing_file
lea ecx, [ebp - 0x3e4]
call fcn.0040279b
push edi
push 2
lea edx, [ebp - 0x3e4]
mov byte [ebp - 4], 8
pop ecx
call fcn.00413e51
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3e4]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov edi, dword [ebp - 0x41c]
jmp 0x42185a
push str.InternetReadFile_failed:
lea ecx, [ebp - 0x3e4]
call fcn.0040279b
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
lea edx, [ebp - 0x3e4]
pop ecx
call fcn.00413e51
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3e4]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov esi, dword [ebp - 0x3f8]
test ebx, ebx
je 0x421865
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3e8]
call fcn.0044a89d
cmp dword [0x4e2078], 0
pop ecx
jne 0x42187e
test esi, esi
jne 0x4218bb
push str.Operation_canceled_or_data_write_error__cleanup_file__
lea ecx, [ebp - 0x3ec]
call fcn.0040279b
push 0
push edi
push 2
lea edx, [ebp - 0x3ec]
mov byte [ebp - 4], 0xb
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x3ec]
lea ecx, [ecx - 0x10]
call fcn.00402def
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x3fc]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x4214b4