Function at 0x4011b0
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x84
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push 0x84400000
push ebx
push ebx
push eax
push ecx
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov edi, 1
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x4011ff
push str.InternetOpenUrl
jmp 0x401471
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
test edi, edi
jne 0x401222
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4013c2
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
mov edi, 4
push 9
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
je 0x4013cc
mov eax, dword [esp + 0x18]
cmp eax, 0xd
je 0x401257
cmp eax, edi
jne 0x4013f5
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x20000013
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4013cc
cmp dword [esp + 0x18], 0x197
jne 0x4013f5
push 0
lea eax, [esp + 0x18]
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x40146c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004029f4
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4012b0
push edi
call fcn.004029e9
mov eax, dword [0x40dc88]
add esp, 4
test eax, eax
jne 0x40139d
push str.Proxy_authentication_is_required.
mov ecx, 0x40dc98
call fcn.00401987
push 0x401830
push 0xa
mov ecx, eax
call fcn.00401840
mov ecx, eax
call fcn.00401810
mov dl, byte [0x40dc8c]
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], dl
mov byte [esp + 0x60], dl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x61]
push str.User:
rep stosd dword es:[edi], eax
mov ecx, 0x40dc98
stosb byte es:[edi], al
call fcn.00401987
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x40dcd8
call fcn.00401f19
push str.Pass:
mov ecx, 0x40dc98
call fcn.00401987
lea edx, [esp + 0x60]
mov ecx, 0x40dcd8
push edx
call fcn.00401f19
lea eax, [esp + 0x2c]
push eax
call ebp
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x2b
push esi
call ebx
test eax, eax
je 0x4013d6
lea edx, [esp + 0x60]
push edx
call ebp
push eax
lea eax, [esp + 0x64]
push eax
push 0x2c
push esi
call ebx
test eax, eax
je 0x4013d6
xor edi, edi
jmp 0x40120b
push 0
push 7
push 0x2eee
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x4013f5
xor edi, edi
jmp 0x40120b
push str.HttpSendRequest
jmp 0x401471
push str.HttpQueryInfo
jmp 0x401471
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetSetOptionFailed:
mov ecx, 0x40dc98
call fcn.00401987
mov ecx, eax
call fcn.00401d33
jmp 0x401436
mov edi, dword [esp + 0xa0]
push 0
push 0x80
lea ecx, [esp + 0x28]
push 2
push ecx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401458
push edi
push str.Cant_open_file_file:
mov ecx, 0x40dc98
call fcn.00401987
mov ecx, eax
call fcn.00401987
push 0x401830
push 0xa
mov ecx, eax
call fcn.00401840
mov ecx, eax
call fcn.00401810
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret
push 0
lea edx, [esp + 0x18]
push 0
push edx
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x40148d
push str.InternetQueryDataAvailable
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401590
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov eax, dword [esp + 0x14]
push eax
call fcn.004029f4
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x1c]
mov edi, eax
push ecx
push edx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4014ea
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401567
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push edi
push ebx
call ebp
test eax, eax
je 0x401518
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4014b8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.InternetReadFile
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401590
push edi
call fcn.004029e9
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error
mov ecx, 0x40dc98
call fcn.00401987
mov ecx, eax
call fcn.00401d33
push 0x401830
push 0xa
mov ecx, eax
call fcn.00401840
mov ecx, eax
call fcn.00401810
push edi
call fcn.004029e9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004029e9
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret