Function at 0x409350
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x436b68]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
push 0
push 0x80000000
push 0
push 0x42f08f
push 0x42f12c
mov eax, dword [ebp + 0xc]
push eax
push 0x42f138
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 0
jne 0x4093b9
jmp 0x409604
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00409900
add esp, 0x10
test eax, eax
jne 0x4093de
jmp 0x409604
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.00419a10
add esp, 0xc
mov dword [ebp - 4], 0x100
mov dword [ebp - 0x110], 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x108]
push edx
push 5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x40944c
lea edx, [ebp - 0x108]
push edx
call fcn.004192c6
add esp, 4
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x10c], 0x10000
mov dword [ebp - 0x11c], 0x10000
push 4
push 0x3000
mov ecx, dword [ebp - 0x11c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x4094bb
jmp 0x409604
mov edx, 1
test edx, edx
je 0x4095e8
mov eax, dword [ebp - 0x11c]
push eax
push 0
mov ecx, dword [ebp - 0x118]
push ecx
call fcn.00419a10
add esp, 0xc
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x409539
jmp 0x409604
mov ecx, dword [ebp - 0x120]
add ecx, dword [ebp - 0x124]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp - 0x124], 0
jne 0x409595
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4095e8
push 0
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x124]
cmp ecx, dword [ebp - 0x12c]
je 0x4095e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
add edx, 1
mov dword [ebp - 0x130], edx
jmp 0x409604
jmp 0x4094bb
push 0x8000
push 0
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x120]
jmp 0x409623
cmp dword [ebp - 0x118], 0
je 0x409621
push 0x8000
push 0
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417fbe
mov esp, ebp
pop ebp
ret