Function at 0x4163d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fa00
mov eax, dword fs:[0]
push eax
mov eax, 0x1080
call fcn.004dd690
mov eax, dword [0x60aca0]
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.00435b90
mov dword [ebp - 4], 0
cmp dword [0x6150ec], 1
jne 0x41646f
xor ecx, ecx
mov eax, 0x6151fa
cmp byte [0x6151f9], cl
push 0x61523a
cmove eax, ecx
lea ecx, [ebp - 0x107c]
push eax
movzx eax, byte [0x6151f8]
push eax
push dword [0x6151f4]
push 0x6150f0
call fcn.004367b0
xor edx, edx
mov ecx, str.Downloading...
call fcn.0040bda0
push 0
push 0x4163b0
lea ecx, [ebp - 0x107c]
call fcn.004367a0
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.00436070
mov esi, eax
test edi, edi
je 0x4165ea
test esi, esi
jne 0x4165ea
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 0x41652b
mov esi, 0x11
push str.Transfer_error
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
test esi, esi
je 0x41656e
lea eax, [ebp - 0x11c]
push eax
push str.Download_failed____s
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.004061a0
add esp, 0x10
cmp esi, 0x130
jne 0x416587
push str.No_new_data_available
jmp 0x416573
push 0
lea eax, [ebp - 0x1088]
push eax
push dword [ebp - 0x107c]
lea ecx, [ebp - 0x107c]
push 0
call fcn.00418520
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1088]
cmp eax, dword [ebp - 0x107c]
je 0x416567
mov esi, 0x12
jmp case.0x41670b.402
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Download_complete
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
xor edx, edx
lea ecx, [ebp - 0x224]
call fcn.0040bda0
mov eax, dword [ebp - 0x108c]
test eax, eax
jle 0x4165c1
cmp byte [ebp + 0x18], 0
je 0x4165c1
test esi, esi
je 0x4165b0
cmp esi, 0x130
jne 0x4165c1
lea ecx, [ebp - 0xc4c]
push ecx
push eax
push ebx
call fcn.004e2189
add esp, 0xc
lea ecx, [ebp - 0x107c]
call fcn.00435d00
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.004dcc5c
mov esp, ebp
pop ebp
ret
mov edi, esi
cmp esi, 0x64
jg 0x416623
cmp edi, 0x64
je 0x416603
test esi, esi
jne case.0x41670b.402
jmp 0x41656e
push str.Cant_send_data
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
mov esi, edi
jmp 0x4164fc
cmp esi, 0x12c
jg 0x4166fc
je 0x4166de
lea eax, [esi - 0x65]
cmp eax, 5
ja case.0x41670b.402
jmp dword [eax*4 + 0x4167a8]
push str.Cant_connect_to_server
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
jmp 0x4164fc
push str.Cant_connect_to_proxy_server
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
jmp 0x4164fc
push str.Cant_receive_data
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
jmp 0x4164fc
push str.Bad_answer
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
jmp 0x4164fc
push str.Bad_URL_format
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
jmp 0x4164fc
push str.Bad_redirection
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
jmp 0x4164fc
lea eax, [esi - 0x190]
cmp eax, 7
ja case.0x41670b.402
jmp dword [eax*4 + 0x4167c0]
push str.Proxy_requires_authorization
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
jmp 0x4164fc
push str.Bad_request
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
jmp 0x4164fc
push str.Authorization_required
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
jmp 0x4164fc
push str.Incorrect_user_name_or_password
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
jmp 0x4164fc
push str.File_not_found
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
jmp 0x4164fc