Function at 0x4116c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f140
mov eax, dword fs:[0]
push eax
mov eax, 0x1080
call fcn.004ffc70
mov eax, dword [0x62bcc0]
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.0043c050
mov dword [ebp - 4], 0
cmp dword [0x6355c0], 1
jne 0x41175f
xor ecx, ecx
mov eax, 0x6356ce
cmp byte [0x6356cd], cl
push 0x63570e
cmove eax, ecx
lea ecx, [ebp - 0x107c]
push eax
movzx eax, byte [0x6356cc]
push eax
push dword [0x6356c8]
push 0x6355c4
call fcn.0043cc60
xor edx, edx
mov ecx, str.Downloading...
call fcn.00417650
push 0
push 0x4116a0
lea ecx, [ebp - 0x107c]
call fcn.0043cc50
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.0043c530
mov esi, eax
test edi, edi
je 0x4118cf
test esi, esi
jne 0x4118cf
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 0x41181b
mov esi, 0x11
push str.Transfer_error
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
test esi, esi
je 0x411853
lea eax, [ebp - 0x11c]
push eax
push str.Download_failed____s
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.00407c20
add esp, 0x10
cmp esi, 0x130
jne 0x41186c
push str.No_new_data_available
jmp 0x411858
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 0x41184c
mov esi, 0x12
jmp case.0x4119f0.402
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Download_complete
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
xor edx, edx
lea ecx, [ebp - 0x224]
call fcn.00417650
mov eax, dword [ebp - 0x108c]
test eax, eax
jle 0x4118a6
cmp byte [ebp + 0x18], 0
je 0x4118a6
test esi, esi
je 0x411895
cmp esi, 0x130
jne 0x4118a6
lea ecx, [ebp - 0xc4c]
push ecx
push eax
push ebx
call fcn.005048a9
add esp, 0xc
lea ecx, [ebp - 0x107c]
call fcn.0043c1c0
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.004ff23c
mov esp, ebp
pop ebp
ret
mov edi, esi
cmp esi, 0x64
jg 0x411908
cmp edi, 0x64
je 0x4118e8
test esi, esi
jne case.0x4119f0.402
jmp 0x411853
push str.Cant_send_data
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
mov esi, edi
jmp 0x4117ec
cmp esi, 0x12c
jg 0x4119e1
je 0x4119c3
lea eax, [esi - 0x65]
cmp eax, 5
ja case.0x4119f0.402
jmp dword [eax*4 + 0x411a90]
push str.Cant_connect_to_server
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
jmp 0x4117ec
push str.Cant_connect_to_proxy_server
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
jmp 0x4117ec
push str.Cant_receive_data
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
jmp 0x4117ec
push str.Bad_answer
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
jmp 0x4117ec
push str.Bad_URL_format
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
jmp 0x4117ec
push str.Bad_redirection
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
jmp 0x4117ec
lea eax, [esi - 0x190]
cmp eax, 7
ja case.0x4119f0.402
jmp dword [eax*4 + 0x411aa8]
push str.Proxy_requires_authorization
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
jmp 0x4117ec
push str.Bad_request
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
jmp 0x4117ec
push str.Authorization_required
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
jmp 0x4117ec
push str.Incorrect_user_name_or_password
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
jmp 0x4117ec
push str.File_not_found
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
jmp 0x4117ec