Function at 0x401630
Capabilities:
Create http request
Query or enumerate registry value
Read data from internet
Receive data

Disassembly:
mov eax, 0x2f08
call fcn.0040aa30
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x2f04], eax
push ebx
push ebp
push esi
push edi
push 0x1e8
lea eax, [esp + 0xe4]
push 0
mov ecx, 8
mov esi, str.SoftwareSMADAV
lea edi, [esp + 0xc8]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00407f70
mov eax, dword [0x40ecb0]
mov edx, dword [str.7_7_7_u]
mov ecx, 0x394
push 0x3f0
mov dword [esp + 0x3e4], eax
mov word [esp + 0xea], cx
mov ecx, dword [0x40ecb4]
mov dword [esp + 0x3e0], edx
mov edx, dword [0x40ecb8]
lea eax, [esp + 0x3f0]
push 0
push eax
mov dword [esp + 0x3f0], ecx
mov dword [esp + 0x3f4], edx
call fcn.00407f70
add esp, 0x18
lea ecx, [esp + 0x20]
push ecx
push 1
push 0
lea edx, [esp + 0xcc]
push edx
push 0x80000001
mov dword [esp + 0x3c], 0x400
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40173f
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3d4]
push ecx
push 0
push 0
push str.LastCheck
push edx
call esi
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push str.VerMain
push edx
call esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x3fc
lea ecx, [esp + 0xdc0]
push 0
push ecx
mov dword [esp + 0xdc4], 0x75
call fcn.00407f70
movzx edx, word [esp + 0x48]
movzx eax, word [esp + 0x46]
movzx ecx, word [esp + 0x44]
push edx
movzx edx, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x46]
push ecx
movzx ecx, word [esp + 0x48]
push edx
push eax
push ecx
push str._04d__02d__02d__02d:_02d:_02d
mov ecx, 0x200
lea ebx, [esp + 0xde0]
call fcn.00401090
mov esi, dword [esp + 0x2f44]
lea eax, [esp + 0x1f98]
mov ecx, eax
add esp, 0x28
mov edx, 0x7d0
sub esi, ecx
lea ecx, [ecx]
lea ecx, [edx + 0x7ffff82e]
test ecx, ecx
je 0x4017e0
movzx ecx, word [esi + eax]
test cx, cx
je 0x4017e0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4017c0
jmp 0x4017e4
test edx, edx
jne 0x4017e7
sub eax, 2
xor edx, edx
mov word [eax], dx
push str._smadavstats19.php_build
lea eax, [esp + 0x1f74]
call fcn.00401000
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xdb8]
push eax
lea ecx, [esp + 0x3d4]
push ecx
push edx
push str._dstats_s__s
mov ecx, 0x3e8
lea ebx, [esp + 0x17b0]
call fcn.00401090
add esp, 0x10
mov eax, ebx
push eax
lea eax, [esp + 0x1f74]
call fcn.00401000
push 0
push 0
push 0
push 1
push 0x40ebc8
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
xor edi, edi
mov dword [esp + 0x18], edi
test esi, esi
je 0x4018b2
push edi
push 0x80000000
push edi
push edi
lea ecx, [esp + 0x1f80]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x40188f
lea edx, [esp + 0x18]
push edx
push 0x3e8
lea eax, [esp + 0x7d8]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x18]
cmp eax, 0x3e8
jae 0x4018a2
mov byte [esp + eax + 0x7d0], 0
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
mov edi, dword [esp + 0x18]
xor eax, eax
xor ebx, ebx
xor ebp, ebp
xor ecx, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
cmp edi, 6
jbe 0x4018e8
jmp 0x4018d0
mov dl, byte [esp + eax + 0x7d0]
cmp dl, 0x30
jl 0x4018e1
cmp dl, 0x39
jle 0x4018e8
inc eax
inc ecx
cmp eax, 6
jb 0x4018d0
lea eax, [esp + 0x11b8]
mov esi, eax
sub ecx, esi
mov edx, 0x3e8
lea esi, [esp + ecx + 0x7d0]
nop
lea ecx, [edx + 0x7ffffc16]
test ecx, ecx
je 0x40191b
mov cl, byte [esi + eax]
test cl, cl
je 0x40191b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x401900
jmp 0x40191f
test edx, edx
jne 0x401920
dec eax
mov byte [eax], bl
cmp edi, 0x104
jbe 0x401b20
lea edx, [esp + 0x11b8]
push 0x40ed70
push edx
call fcn.00402332
add esp, 8
test eax, eax
je 0x401b26
cmp ebx, 4
jae 0x401ae5
test eax, eax
je 0x40196b
mov edx, 0x104
mov ecx, eax
nop
cmp byte [ecx], 0
je 0x40196b
inc ecx
sub edx, 1
jne 0x401960
lea ecx, [esp + 0x2c8]
mov edi, eax
mov edx, ecx
mov esi, 0x104
sub edi, edx
lea ecx, [ecx]
lea edx, [esi + 0x7ffffefa]
test edx, edx
je 0x401999
mov dl, byte [edi + ecx]
test dl, dl
je 0x401999
inc ecx
sub esi, 1
jne 0x401980
jmp 0x40199d
test esi, esi
jne 0x40199e
dec ecx
mov byte [ecx], 0
xor ecx, ecx
cmp ebx, ecx
jne 0x401a13
mov dword [esp + 0x14], ecx
cmp eax, ecx
je 0x4019bf
lea edx, [ecx + 0x14]
mov ecx, eax
cmp byte [ecx], 0
je 0x4019f9
inc ecx
sub edx, 1
jne 0x4019b4
xor esi, esi
xor ecx, ecx
test esi, esi
jbe 0x4019d9
mov dl, byte [ecx + eax]
cmp dl, 0x30
jl 0x401a06
cmp dl, 0x39
jg 0x401a06
inc ecx
cmp ecx, esi
jb 0x4019c7
lea ecx, [esp + 0x14]
push ecx
push 0x40ebc4
push eax
call fcn.00402236
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x14], edx
jmp 0x401ac9
test edx, edx
je 0x4019bf
mov esi, 0x14
sub esi, edx
jmp 0x4019c1
mov dword [esp + 0x14], 0
jmp 0x401ac9
cmp ebx, 1
jne 0x401a74
mov dword [esp + 0x10], ecx
cmp eax, ecx
je 0x401a30
lea edx, [ebx + 0x13]
mov ecx, eax
cmp byte [ecx], 0
je 0x401a63
inc ecx
sub edx, 1
jne 0x401a25
xor esi, esi
xor ecx, ecx
test esi, esi
jbe 0x401a4a
mov dl, byte [ecx + eax]
cmp dl, 0x30
jl 0x401a70
cmp dl, 0x39
jg 0x401a70
inc ecx
cmp ecx, esi
jb 0x401a38
lea ecx, [esp + 0x10]
push ecx
push 0x40ebc4
push eax
call fcn.00402236
mov ebp, dword [esp + 0x1c]
add esp, 0xc
jmp 0x401ac9
test edx, edx
je 0x401a30
mov esi, 0x14
sub esi, edx
jmp 0x401a32
xor ebp, ebp
jmp 0x401ac9
cmp ebx, 2
jne 0x401aaf
push 0x100
push eax
lea edx, [esp + 0xbc0]
push edx
call fcn.0040261b
lea eax, [esp + 0xbc4]
push eax
push 0x40ed74
mov ecx, 0x100
lea ebx, [esp + 0x15b4]
call fcn.00401090
add esp, 0x14
jmp 0x401ac5
cmp ebx, 3
jne 0x401ac9
push eax
lea ebx, [esp + 0x44]
call fcn.00401190
add esp, 4
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x10]
push 0x40ed70
push 0
call fcn.00402332
inc ebx
add esp, 8
mov dword [esp + 0x10], ebx
test eax, eax
jne 0x40194b
cmp dword [esp + 0x24], 0
je 0x401b26
lea ecx, [ebp - 0x2711]
cmp ecx, 0x1cb7d61
ja 0x401b26
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
jbe 0x401b26
lea eax, [esp + 0x40]
push eax
push ebp
lea ecx, [esp + 0x15a8]
call fcn.00401400
add esp, 8
mov eax, 1
jmp 0x401b28
dec edi
cmp edi, 0x12
jbe 0x401b19
xor eax, eax
mov ecx, dword [esp + 0x2f14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004020cc
add esp, 0x2f08
ret