Function at 0x403680
Capabilities:
Create http request
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
and esp, 0xfffffff8
mov eax, 0x3034
call fcn.00406ed0
mov eax, dword [0x4110cc]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push 0x40e5b0
mov dword [esp + 0x3050], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], 0x2800
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x18], ebx
push edi
jne 0x4036fe
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 3
lea ecx, [esp + 0x430]
call fcn.00403dc0
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0x20]
push 0x40f738
lea eax, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
push eax
jmp 0x40387d
mov ecx, dword [ebp + 8]
push 0x84003000
push edi
push edi
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, edi
push edi
jne 0x403727
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
jmp 0x403858
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x840]
push ecx
push 1
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x403752
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
jmp 0x403858
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
mov byte [esp + eax + 0x838], 0
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403766
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x840]
push ecx
call fcn.0040d802
add esp, 0xc
test eax, eax
je 0x4037a7
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push str.no_update
lea ecx, [esp + 0x430]
call fcn.00403e90
jmp 0x403866
mov eax, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403800
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push 3
lea ecx, [esp + 0x430]
call fcn.00403dc0
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push 0x40f738
lea ecx, [esp + 0x24]
push ecx
call fcn.004067e0
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x10]
push edx
push 0x2800
lea eax, [esp + 0x840]
push eax
push esi
call ebx
test eax, eax
je 0x403858
nop
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403882
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x844]
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea eax, [esp + 0x10]
push eax
push 0x2800
lea ecx, [esp + 0x840]
push ecx
push esi
call ebx
test eax, eax
jne 0x403820
push 3
lea ecx, [esp + 0x430]
call fcn.00403dc0
mov ecx, 0x103
mov esi, eax
lea edi, [esp + 0x20]
push 0x40f738
lea edx, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
push edx
call fcn.004067e0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x303c]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret