Function at 0x4174b0
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x254
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x206
lea eax, [esp + 0x56]
push esi
push eax
mov word [esp + 0x5c], si
call fcn.004054f0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
mov eax, 0x4280c0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x104
mov word [esp + 0x28], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x417526
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
sub eax, edx
sar eax, 1
je 0x417552
push 0x4280c0
push esi
push 0x20000
call edi
test eax, eax
jne 0x417710
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push esi
push 0x423438
push closesocket
call ebx
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4175c1
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
push 0x4234a4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4175ba
lea eax, [esp + 0x28]
push eax
push esi
push 0x20000
call edi
test eax, eax
je 0x4175ba
mov ecx, dword [esp + 0x14]
push ecx
call ebp
jmp 0x417710
mov edx, dword [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x50]
push eax
push 0x104
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x4280e0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4175e0
sub eax, edx
sar eax, 1
jne 0x417626
push 0x4234ec
lea ecx, [esp + 0x54]
push 0x104
push ecx
call fcn.00401187
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x4234f8]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, si
jne 0x417610
jmp 0x417654
push 0x4280e0
lea edx, [esp + 0x54]
push 0x104
push edx
call fcn.00401187
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + 0x4280e0]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, si
jne 0x417640
push 0x423504
lea eax, [esp + 0x54]
push 0x104
push eax
call fcn.00401187
lea ecx, [esp + 0x24]
add esp, 0xc
push ecx
call fcn.00415230
mov edi, eax
add esp, 4
cmp edi, esi
je 0x417710
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x50]
push edi
push edx
call fcn.00417390
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push 0x423528
lea eax, [esp + 0x5c]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x14]
push ecx
push 3
push esi
push 0x423530
push closesocket
call ebx
test eax, eax
jne 0x417707
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4176d0
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x2c]
push eax
push 1
push esi
push 0x42359c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x417707
mov edx, dword [esp + 0x14]
push edx
call ebp
push edi
call fcn.00401dd1
add esp, 4
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00401148
add esp, 0x254
ret