Function at 0x41c4d0
Capabilities:
Check for time delay via gettickcount
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4842ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x768
mov eax, dword [0x4a57cc]
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0x73c], ecx
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x6e8], 0
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x11c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 0x10], 0
je 0x41c59c
push 0xc28
call fcn.00479141
add esp, 4
mov dword [ebp - 0x71c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x71c], 0
je 0x41c571
mov ecx, dword [ebp - 0x71c]
call fcn.0043f000
mov dword [ebp - 0x740], eax
jmp 0x41c57b
mov dword [ebp - 0x740], 0
mov eax, dword [ebp - 0x740]
mov dword [ebp - 0x718], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x718]
mov dword [ebp - 0x2d0], ecx
jmp 0x41c5fb
push 0xc28
call fcn.00479141
add esp, 4
mov dword [ebp - 0x724], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x724], 0
je 0x41c5d2
mov ecx, dword [ebp - 0x724]
call fcn.0043ec90
mov dword [ebp - 0x744], eax
jmp 0x41c5dc
mov dword [ebp - 0x744], 0
mov edx, dword [ebp - 0x744]
mov dword [ebp - 0x720], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x720]
mov dword [ebp - 0x2d0], eax
mov ecx, dword [ebp - 0x2d0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2d0]
call dword [edx + 4]
test eax, eax
jne 0x41c641
mov ecx, dword [ebp - 0x2d0]
call fcn.0043eae0
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.0043f9e0
push eax
push str.Cannot_Initialize_Inet_Client__:__d___s
mov eax, dword [ebp - 0x73c]
push eax
call fcn.0041e290
add esp, 0x10
jmp 0x41ce76
push 0x2f
mov ecx, dword [ebp + 8]
push ecx
call fcn.004031f0
add esp, 8
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x41c67b
mov edx, dword [ebp + 8]
push edx
push str.Invalid_URL_:__s
mov eax, dword [ebp - 0x73c]
push eax
call fcn.0041e290
add esp, 0xc
jmp 0x41ce76
mov ecx, dword [ebp - 0x118]
sub ecx, dword [ebp + 8]
add ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x114]
push eax
call fcn.004031d0
add esp, 0xc
mov ecx, dword [ebp - 0x118]
sub ecx, dword [ebp + 8]
mov byte [ebp + ecx - 0x114], 0
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x748], edx
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x74c], eax
mov ecx, dword [ebp - 0x74c]
mov dword [ebp - 0x750], ecx
mov edx, dword [ebp - 0x748]
mov al, byte [edx]
mov byte [ebp - 0x751], al
mov ecx, dword [ebp - 0x74c]
mov dl, byte [ebp - 0x751]
mov byte [ecx], dl
mov eax, dword [ebp - 0x748]
add eax, 1
mov dword [ebp - 0x748], eax
mov ecx, dword [ebp - 0x74c]
add ecx, 1
mov dword [ebp - 0x74c], ecx
cmp byte [ebp - 0x751], 0
jne 0x41c6d3
mov edx, dword [ebp - 0x120]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x2d0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2d0]
call dword [edx + 0xc]
test eax, eax
jne 0x41c780
mov ecx, dword [ebp - 0x2d0]
call fcn.0043eb00
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.0043eae0
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.0043f9e0
push eax
mov eax, dword [ebp + 8]
push eax
push str.Cannot_connect_to__s_:__d___s:_s
mov ecx, dword [ebp - 0x73c]
push ecx
call fcn.0041e290
add esp, 0x18
jmp 0x41ce76
mov edx, dword [ebp - 0x73c]
cmp dword [edx + 0x534], 0
jne 0x41c7a8
push str.canceled_after_connect
mov eax, dword [ebp - 0x73c]
push eax
call fcn.0041e290
add esp, 8
jmp 0x41ce76
lea ecx, [ebp - 0x1a4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x48bb40
lea eax, [ebp - 0x2ac]
push eax
call fcn.00463edd
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x2ac]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x2ac]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0xffffffff
jne 0x41c82e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2ac]
push eax
push str.Cannot_create_file___s__:__d
mov ecx, dword [ebp - 0x73c]
push ecx
call fcn.0041e290
add esp, 0x10
jmp 0x41ce76
push 0
push 0
push 0
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x1a4]
push ecx
mov edx, dword [ebp - 0x2d0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2d0]
call dword [eax + 0x14]
test eax, eax
jne 0x41c91c
cmp dword [ebp + 0x18], 1
jne 0x41c8d8
cmp dword [ebp + 0x10], 1
jne 0x41c8d8
cmp dword [ebp - 0x120], 0
jne 0x41c8d8
mov dword [ebp - 0x120], 1
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2d0]
call fcn.0043eb00
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.0043eae0
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.0043f9e0
push eax
lea edx, [ebp - 0x1a4]
push edx
push str.Retry___Cannot_retrieve_file___s__:__d___s:_s
mov eax, dword [ebp - 0x73c]
push eax
call fcn.0041e290
add esp, 0x18
jmp 0x41c716
mov ecx, dword [ebp - 0x2d0]
call fcn.0043eb00
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.0043eae0
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.0043f9e0
push eax
lea ecx, [ebp - 0x1a4]
push ecx
push str.Cannot_retrieve_file___s__:__d___s:_s
mov edx, dword [ebp - 0x73c]
push edx
call fcn.0041e290
add esp, 0x18
jmp 0x41ce76
lea eax, [ebp - 0x6f8]
push eax
mov ecx, dword [ebp - 0x2d0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2d0]
call dword [edx + 0x24]
push 0xffffffffffffffff
lea eax, [ebp - 0x6f8]
push eax
lea ecx, [ebp - 0x700]
call fcn.0041f320
push str._Y__m__d__H:_M:_S
lea ecx, [ebp - 0x728]
push ecx
lea ecx, [ebp - 0x700]
call fcn.0041f460
mov dword [ebp - 0x758], eax
mov edx, dword [ebp - 0x758]
mov dword [ebp - 0x75c], edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x75c]
mov ecx, dword [eax]
push ecx
push str.File_Time_:__s
mov edx, dword [ebp - 0x73c]
push edx
call fcn.0041e290
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x728]
call fcn.00403ca0
cmp dword [ebp - 0x6e8], 0
jne 0x41caa2
mov eax, dword [ebp - 0x73c]
add eax, 4
push eax
lea ecx, [ebp - 0x704]
call fcn.0041e3d0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x704]
call fcn.0041e420
movzx ecx, al
test ecx, ecx
je 0x41ca90
mov edx, dword [ebp - 0x73c]
mov dword [edx + 0x41c], 0
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x760], eax
mov ecx, dword [ebp - 0x73c]
add ecx, 0x420
mov dword [ebp - 0x764], ecx
mov edx, dword [ebp - 0x764]
mov dword [ebp - 0x768], edx
mov eax, dword [ebp - 0x760]
mov cl, byte [eax]
mov byte [ebp - 0x769], cl
mov edx, dword [ebp - 0x764]
mov al, byte [ebp - 0x769]
mov byte [edx], al
mov ecx, dword [ebp - 0x760]
add ecx, 1
mov dword [ebp - 0x760], ecx
mov edx, dword [ebp - 0x764]
add edx, 1
mov dword [ebp - 0x764], edx
cmp byte [ebp - 0x769], 0
jne 0x41ca20
mov eax, dword [ebp - 0x2d0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2d0]
call dword [edx + 0x20]
mov ecx, dword [ebp - 0x73c]
mov dword [ecx + 0x520], eax
mov edx, dword [ebp - 0x73c]
mov dword [edx + 0x524], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x704]
call fcn.0041e400
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2d8], 0
mov ecx, 1
test ecx, ecx
je 0x41cdb8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2b0], eax
mov edx, dword [ebp - 0x2b0]
sub edx, dword [ebp - 0x2cc]
cmp edx, 0x3e8
jb 0x41cc02
push 0xc
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x2c8]
push ecx
call fcn.00463ba0
add esp, 0xc
push 0xc
lea edx, [ebp - 0x2e0]
push edx
lea eax, [ebp - 0x2e4]
push eax
call fcn.00463ba0
add esp, 0xc
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2d8], ecx
mov edx, dword [ebp - 0x73c]
mov eax, dword [edx + 0x524]
mov dword [ebp - 0x2bc], eax
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2cc], ecx
mov edx, dword [ebp - 0x2b4]
add edx, 1
mov dword [ebp - 0x2b4], edx
cmp dword [ebp - 0x2b4], 6
jbe 0x41cba6
mov eax, dword [ebp - 0x2bc]
cmp eax, dword [ebp - 0x2c8]
je 0x41cba6
mov ecx, dword [ebp - 0x2bc]
sub ecx, dword [ebp - 0x2c8]
mov eax, dword [ebp - 0x2d8]
sub eax, dword [ebp - 0x2e4]
xor edx, edx
mov esi, 0x3e8
div esi
mov esi, eax
mov eax, ecx
xor edx, edx
div esi
mov dword [ebp - 0x11c], eax
jmp 0x41cbb0
mov dword [ebp - 0x11c], 0
mov edx, dword [ebp - 0x73c]
add edx, 4
push edx
lea ecx, [ebp - 0x710]
call fcn.0041e3d0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x710]
call fcn.0041e420
movzx eax, al
test eax, eax
je 0x41cbf0
mov ecx, dword [ebp - 0x73c]
mov edx, dword [ebp - 0x11c]
mov dword [ecx + 0x530], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x710]
call fcn.0041e400
mov eax, dword [ebp - 0x73c]
cmp dword [eax + 0x534], 0
jne 0x41cc37
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.canceled_on_downloading
mov edx, dword [ebp - 0x73c]
push edx
call fcn.0041e290
add esp, 8
jmp 0x41ce76
push 0x400
lea eax, [ebp - 0x6e4]
push eax
mov ecx, dword [ebp - 0x2d0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2d0]
call dword [edx + 0x18]
mov dword [ebp - 0x708], eax
cmp dword [ebp - 0x708], 0
jge 0x41cd1d
cmp dword [ebp - 0x6e8], 0
jne 0x41ccc5
mov dword [ebp - 0x6e8], 1
mov ecx, dword [ebp - 0x2d0]
call fcn.0043eb00
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.0043eae0
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.0043f9e0
push eax
mov eax, dword [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x1a4]
push ecx
push str.Retry___Cannot_Read_file___s__dByte__:__d___s:_s
mov edx, dword [ebp - 0x73c]
push edx
call fcn.0041e290
add esp, 0x1c
jmp 0x41c841
mov ecx, dword [ebp - 0x2d0]
call fcn.0043eb00
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.0043eae0
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.0043f9e0
push eax
mov eax, dword [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x1a4]
push ecx
push str.Cannot_Read_file___s__dByte__:__d___s:_s
mov edx, dword [ebp - 0x73c]
push edx
call fcn.0041e290
add esp, 0x1c
mov eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41ce76
cmp dword [ebp - 0x708], 0
jne 0x41cd2b
jmp 0x41cdb8
push 0
lea ecx, [ebp - 0x70c]
push ecx
mov edx, dword [ebp - 0x708]
push edx
lea eax, [ebp - 0x6e4]
push eax
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x2d4]
add edx, dword [ebp - 0x708]
mov dword [ebp - 0x2d4], edx
mov eax, dword [ebp - 0x73c]
add eax, 4
push eax
lea ecx, [ebp - 0x714]
call fcn.0041e3d0
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x714]
call fcn.0041e420
movzx ecx, al
test ecx, ecx
je 0x41cda1
mov edx, dword [ebp - 0x73c]
mov eax, dword [ebp - 0x2d4]
mov dword [edx + 0x524], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x714]
call fcn.0041e400
jmp 0x41cac4
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2d0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2d0]
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x73c]
cmp dword [ecx + 0x520], 0
je 0x41ce2a
mov edx, dword [ebp - 0x73c]
mov eax, dword [edx + 0x520]
cmp eax, dword [ebp - 0x2d4]
je 0x41ce2a
lea ecx, [ebp - 0x1a4]
push ecx
mov edx, dword [ebp - 0x2d4]
push edx
mov eax, dword [ebp - 0x73c]
mov ecx, dword [eax + 0x520]
push ecx
push str.File_Size_Mismatch__d_vs__d_of_file___s_
mov edx, dword [ebp - 0x73c]
push edx
call fcn.0041e290
add esp, 0x14
jmp 0x41ce76
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x730], eax
mov ecx, dword [ebp - 0x730]
mov dword [ebp - 0x72c], ecx
cmp dword [ebp - 0x72c], 0
je 0x41ce65
push 1
mov edx, dword [ebp - 0x72c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x72c]
call dword [eax]
mov dword [ebp - 0x770], eax
jmp 0x41ce6f
mov dword [ebp - 0x770], 0
mov eax, 1
jmp 0x41cec6
cmp dword [ebp - 0x2d0], 0
je 0x41cec4
mov ecx, dword [ebp - 0x2d0]
mov dword [ebp - 0x738], ecx
mov edx, dword [ebp - 0x738]
mov dword [ebp - 0x734], edx
cmp dword [ebp - 0x734], 0
je 0x41ceba
push 1
mov eax, dword [ebp - 0x734]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x734]
call dword [edx]
mov dword [ebp - 0x774], eax
jmp 0x41cec4
mov dword [ebp - 0x774], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004635af
pop esi
mov esp, ebp
pop ebp
ret 0x14