Function at 0x41a2d0
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4841e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48c
mov eax, dword [0x4a57cc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x478], ecx
lea ecx, [ebp - 0x10]
call fcn.00403c10
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x14], 0
je 0x41a370
push 0xc28
call fcn.00479141
add esp, 4
mov dword [ebp - 0x454], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x454], 0
je 0x41a34b
mov ecx, dword [ebp - 0x454]
call fcn.0043f000
mov dword [ebp - 0x47c], eax
jmp 0x41a355
mov dword [ebp - 0x47c], 0
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x450], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x20], ecx
jmp 0x41a3c6
push 0xc28
call fcn.00479141
add esp, 4
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x45c], 0
je 0x41a3a3
mov ecx, dword [ebp - 0x45c]
call fcn.0043ec90
mov dword [ebp - 0x480], eax
jmp 0x41a3ad
mov dword [ebp - 0x480], 0
mov edx, dword [ebp - 0x480]
mov dword [ebp - 0x458], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
call dword [edx + 4]
test eax, eax
jne 0x41a400
mov ecx, dword [ebp - 0x20]
call fcn.0043eae0
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0043f9e0
push eax
push 0x48b604
mov eax, dword [ebp - 0x478]
push eax
call fcn.0041e290
add esp, 0x10
jmp 0x41aca9
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x20]
call dword [edx + 0xc]
test eax, eax
jne 0x41a455
mov ecx, dword [ebp - 0x20]
call fcn.0043eb00
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0043eae0
push eax
mov ecx, dword [ebp - 0x20]
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 - 0x478]
push ecx
call fcn.0041e290
add esp, 0x18
jmp 0x41aca9
mov ecx, dword [ebp + 0x10]
call fcn.00420d30
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
call fcn.0042fc40
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x428], edx
jmp 0x41a487
mov eax, dword [ebp - 0x428]
add eax, 0x638
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x428]
cmp ecx, dword [ebp - 0x1c]
je 0x41ac43
lea ecx, [ebp - 0x42c]
call fcn.00403c10
mov byte [ebp - 4], 3
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x438], 0
mov edx, dword [ebp - 0x478]
cmp dword [edx + 0x534], 0
jne 0x41a4dc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00403ca0
jmp 0x41aca9
mov eax, dword [ebp - 0x478]
add eax, 4
push eax
lea ecx, [ebp - 0x43c]
call fcn.0041e3d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x43c]
call fcn.0041e420
movzx ecx, al
test ecx, ecx
je 0x41a5d7
mov edx, dword [ebp - 0x478]
mov dword [edx + 0x41c], 0
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x478]
add ecx, 0x420
mov dword [ebp - 0x488], ecx
mov edx, dword [ebp - 0x488]
mov dword [ebp - 0x48c], edx
mov eax, dword [ebp - 0x484]
mov cl, byte [eax]
mov byte [ebp - 0x48d], cl
mov edx, dword [ebp - 0x488]
mov al, byte [ebp - 0x48d]
mov byte [edx], al
mov ecx, dword [ebp - 0x484]
add ecx, 1
mov dword [ebp - 0x484], ecx
mov edx, dword [ebp - 0x488]
add edx, 1
mov dword [ebp - 0x488], edx
cmp byte [ebp - 0x48d], 0
jne 0x41a545
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax + 0x208]
mov edx, dword [ebp - 0x428]
add ecx, dword [edx + 0x20c]
mov eax, dword [ebp - 0x478]
mov dword [eax + 0x520], ecx
mov ecx, dword [ebp - 0x478]
mov dword [ecx + 0x524], 0
mov edx, dword [ebp - 0x478]
mov eax, dword [edx + 0x52c]
add eax, 1
mov ecx, dword [ebp - 0x478]
mov dword [ecx + 0x52c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x43c]
call fcn.0041e400
mov edx, dword [ebp - 0x428]
cmp dword [edx + 0x630], 2
jne 0x41a654
mov eax, dword [ebp - 0x428]
add eax, 0x100
push eax
lea ecx, [ebp - 0x42c]
call fcn.004205a0
push 0x2f
push 0x5c
lea ecx, [ebp - 0x42c]
call fcn.0041f730
mov ecx, dword [ebp - 0x428]
add ecx, 0x100
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x48b650
lea eax, [ebp - 0x10]
push eax
call fcn.0043ef60
add esp, 0x10
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx + 0x208]
mov dword [ebp - 0x430], edx
jmp 0x41a818
mov eax, dword [ebp - 0x428]
cmp dword [eax + 0x630], 3
jne 0x41a73a
push 0x48b658
mov ecx, dword [ebp - 0x428]
push ecx
call fcn.0040ad70
add esp, 8
test eax, eax
je 0x41a697
push 0x48b664
mov edx, dword [ebp - 0x428]
push edx
call fcn.0040ad70
add esp, 8
test eax, eax
jne 0x41a6d6
mov eax, dword [ebp - 0x428]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004205a0
push 0x2f
push 0x5c
lea ecx, [ebp - 0x42c]
call fcn.0041f730
mov ecx, dword [ebp - 0x428]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x48b670
lea eax, [ebp - 0x10]
push eax
call fcn.0043ef60
add esp, 0x10
jmp 0x41a735
mov ecx, dword [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x42c]
call fcn.004205a0
push 0x48b678
lea ecx, [ebp - 0x42c]
call fcn.0040f590
push 0x2f
push 0x5c
lea ecx, [ebp - 0x42c]
call fcn.0041f730
mov edx, dword [ebp - 0x428]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x48b67c
lea ecx, [ebp - 0x10]
push ecx
call fcn.0043ef60
add esp, 0x10
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x20c]
mov dword [ebp - 0x430], eax
jmp 0x41a818
mov ecx, dword [ebp - 0x428]
cmp dword [ecx + 0x630], 4
jne 0x41a7aa
mov edx, dword [ebp - 0x428]
push edx
lea ecx, [ebp - 0x42c]
call fcn.004205a0
push str..delta1
lea ecx, [ebp - 0x42c]
call fcn.0040f590
push 0x2f
push 0x5c
lea ecx, [ebp - 0x42c]
call fcn.0041f730
mov eax, dword [ebp - 0x428]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x48b690
lea edx, [ebp - 0x10]
push edx
call fcn.0043ef60
add esp, 0x10
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax + 0x420]
mov dword [ebp - 0x430], ecx
jmp 0x41a818
mov edx, dword [ebp - 0x428]
cmp dword [edx + 0x630], 5
jne 0x41a818
mov eax, dword [ebp - 0x428]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004205a0
push str..delta2
lea ecx, [ebp - 0x42c]
call fcn.0040f590
push 0x2f
push 0x5c
lea ecx, [ebp - 0x42c]
call fcn.0041f730
mov ecx, dword [ebp - 0x428]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x48b6a8
lea eax, [ebp - 0x10]
push eax
call fcn.0043ef60
add esp, 0x10
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx + 0x628]
mov dword [ebp - 0x430], edx
cmp dword [ebp + 0x20], 0
je 0x41a8b2
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x10]
call fcn.00420d30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0xffffffff
je 0x41a8b2
push 2
push 0
push 0
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x440]
cmp edx, dword [ebp - 0x430]
jne 0x41a8b2
mov eax, dword [ebp - 0x10]
push eax
push str._s_Skipped
mov ecx, dword [ebp - 0x478]
push ecx
call fcn.0041e290
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00403ca0
jmp 0x41a476
lea ecx, [ebp - 0x10]
call fcn.00420d30
push eax
mov ecx, dword [ebp - 0x478]
call fcn.004196a0
push 0x80
lea ecx, [ebp - 0x10]
call fcn.00420d30
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.files.nfo
mov edx, dword [ebp - 0x428]
push edx
call fcn.0040ad70
add esp, 8
test eax, eax
je 0x41a90a
push str.files.nfo2
mov eax, dword [ebp - 0x428]
push eax
call fcn.0040ad70
add esp, 8
test eax, eax
jne 0x41a933
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x10]
call fcn.00420d30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x434], eax
jmp 0x41a95a
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x10]
call fcn.00420d30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0xffffffff
jne 0x41a996
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str.Cannot_create_file___s__while_downloading:__d
mov edx, dword [ebp - 0x478]
push edx
call fcn.0041e290
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00403ca0
jmp 0x41aca9
mov dword [ebp - 0x438], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x42c]
call fcn.00420d30
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x20]
call dword [edx + 0x14]
test eax, eax
jne 0x41aa88
cmp dword [ebp + 0x1c], 1
jne 0x41aa31
cmp dword [ebp + 0x14], 1
jne 0x41aa31
cmp dword [ebp - 0x18], 0
jne 0x41aa31
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
call fcn.0043eb00
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0043eae0
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0043f9e0
push eax
mov ecx, dword [ebp - 0x42c]
push ecx
push 0x48b70c
mov edx, dword [ebp - 0x478]
push edx
call fcn.0041e290
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00403ca0
jmp 0x41a400
mov ecx, dword [ebp - 0x20]
call fcn.0043eb00
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0043eae0
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0043f9e0
push eax
mov eax, dword [ebp - 0x42c]
push eax
push 0x48b73c
mov ecx, dword [ebp - 0x478]
push ecx
call fcn.0041e290
add esp, 0x18
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00403ca0
jmp 0x41aca9
mov eax, 1
test eax, eax
je 0x41abd7
mov ecx, dword [ebp - 0x478]
cmp dword [ecx + 0x534], 0
jne 0x41aac5
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00403ca0
jmp 0x41aca9
push 0x400
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
call dword [edx + 0x18]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
jge 0x41ab42
mov ecx, dword [ebp - 0x20]
call fcn.0043eb00
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0043eae0
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0043f9e0
push eax
mov eax, dword [ebp - 0x42c]
push eax
push str.Cannot_Read_file___s__:__d___s:_s
mov ecx, dword [ebp - 0x478]
push ecx
call fcn.0041e290
add esp, 0x18
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00403ca0
jmp 0x41aca9
cmp dword [ebp - 0x444], 0
jne 0x41ab50
jmp 0x41abd7
push 0
lea eax, [ebp - 0x448]
push eax
mov ecx, dword [ebp - 0x444]
push ecx
lea edx, [ebp - 0x424]
push edx
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x438]
add ecx, dword [ebp - 0x444]
mov dword [ebp - 0x438], ecx
mov edx, dword [ebp - 0x478]
add edx, 4
push edx
lea ecx, [ebp - 0x44c]
call fcn.0041e3d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44c]
call fcn.0041e420
movzx eax, al
test eax, eax
je 0x41abc3
mov ecx, dword [ebp - 0x478]
mov edx, dword [ebp - 0x438]
mov dword [ecx + 0x524], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44c]
call fcn.0041e400
jmp 0x41aa88
cmp dword [ebp - 0x430], 0
je 0x41ac17
mov eax, dword [ebp - 0x430]
cmp eax, dword [ebp - 0x438]
je 0x41ac17
mov ecx, dword [ebp - 0x428]
push ecx
mov edx, dword [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x430]
push eax
push 0x48b788
mov ecx, dword [ebp - 0x478]
push ecx
call fcn.0041e290
add esp, 0x14
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x20]
call dword [edx + 0x1c]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00403ca0
jmp 0x41a476
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x460], ecx
cmp dword [ebp - 0x460], 0
je 0x41ac7b
push 1
mov edx, dword [ebp - 0x460]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x460]
call dword [eax]
mov dword [ebp - 0x494], eax
jmp 0x41ac85
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x468], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403ca0
mov eax, dword [ebp - 0x468]
jmp 0x41ad2e
cmp dword [ebp - 0x20], 0
je 0x41acf1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x470], ecx
mov edx, dword [ebp - 0x470]
mov dword [ebp - 0x46c], edx
cmp dword [ebp - 0x46c], 0
je 0x41ace7
push 1
mov eax, dword [ebp - 0x46c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x46c]
call dword [edx]
mov dword [ebp - 0x498], eax
jmp 0x41acf1
mov dword [ebp - 0x498], 0
lea ecx, [ebp - 0x10]
call fcn.0041f630
movzx eax, al
test eax, eax
jne 0x41ad0f
lea ecx, [ebp - 0x10]
call fcn.00420d30
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x474], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403ca0
mov eax, dword [ebp - 0x474]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x24]
call fcn.004635af
mov esp, ebp
pop ebp
ret 0x1c