Function at 0x411420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e690
mov eax, dword fs:[0]
push eax
mov eax, 0x1080
call fcn.004ff310
mov eax, dword [0x62acc0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x108c], edx
mov dword [ebp - 0x1080], ecx
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x107c]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1084], eax
call fcn.0043bbc0
mov dword [ebp - 4], 0
cmp dword [0x6345c0], 1
jne 0x4114bf
xor ecx, ecx
mov eax, 0x6346ce
cmp byte [0x6346cd], cl
push 0x63470e
cmove eax, ecx
lea ecx, [ebp - 0x107c]
push eax
movzx eax, byte [0x6346cc]
push eax
push dword [0x6346c8]
push 0x6345c4
call fcn.0043c7d0
xor edx, edx
mov ecx, str.Downloading...
call fcn.00417380
push 0
push 0x411400
lea ecx, [ebp - 0x107c]
call fcn.0043c7c0
push 0
push dword [ebp - 0x1084]
lea ecx, [ebp - 0x107c]
push ebx
mov ebx, dword [ebp - 0x1080]
push esi
push 1
push ebx
call fcn.0043c0a0
mov esi, eax
test edi, edi
je 0x41162f
test esi, esi
jne 0x41162f
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41157b
mov esi, 0x11
push str.Transfer_error
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
test esi, esi
je 0x4115b3
lea eax, [ebp - 0x11c]
push eax
push str.Download_failed____s
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.00407c70
add esp, 0x10
cmp esi, 0x130
jne 0x4115cc
push str.No_new_data_available
jmp 0x4115b8
push 0
lea eax, [ebp - 0x1088]
push eax
push dword [ebp - 0x107c]
push dword [ebp - 0x1078]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1088]
cmp eax, dword [ebp - 0x107c]
je 0x4115ac
mov esi, 0x12
jmp case.0x411750.402
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Download_complete
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
xor edx, edx
lea ecx, [ebp - 0x224]
call fcn.00417380
mov eax, dword [ebp - 0x108c]
test eax, eax
jle 0x411606
cmp byte [ebp + 0x18], 0
je 0x411606
test esi, esi
je 0x4115f5
cmp esi, 0x130
jne 0x411606
lea ecx, [ebp - 0xc4c]
push ecx
push eax
push ebx
call fcn.00503df9
add esp, 0xc
lea ecx, [ebp - 0x107c]
call fcn.0043bd30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret
mov edi, esi
cmp esi, 0x64
jg 0x411668
cmp edi, 0x64
je 0x411648
test esi, esi
jne case.0x411750.402
jmp 0x4115b3
push str.Cant_send_data
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
mov esi, edi
jmp 0x41154c
cmp esi, 0x12c
jg 0x411741
je 0x411723
lea eax, [esi - 0x65]
cmp eax, 5
ja case.0x411750.402
jmp dword [eax*4 + 0x4117f0]
push str.Cant_connect_to_server
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
jmp 0x41154c
push str.Cant_connect_to_proxy_server
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
jmp 0x41154c
push str.Cant_receive_data
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
jmp 0x41154c
push str.Bad_answer
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
jmp 0x41154c
push str.Bad_URL_format
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
jmp 0x41154c
push str.Bad_redirection
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
jmp 0x41154c
lea eax, [esi - 0x190]
cmp eax, 7
ja case.0x411750.402
jmp dword [eax*4 + 0x411808]
push str.Proxy_requires_authorization
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
jmp 0x41154c
push str.Bad_request
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
jmp 0x41154c
push str.Authorization_required
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
jmp 0x41154c
push str.Incorrect_user_name_or_password
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
jmp 0x41154c
push str.File_not_found
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
jmp 0x41154c