Function at 0x4074e0
Capabilities:
Get common file path
Set registry value

Disassembly:
sub esp, 0x620
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x14], 0
call fcn.00413010
push 0x206
lea ecx, [esp + 0x222]
push 0
push ecx
mov word [esp + 0x228], 0
call fcn.00413010
add esp, 0x18
push 0
push 0x2b
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebx + 0x78], 8
jb 0x40754c
mov ecx, dword [ebx + 0x64]
jmp 0x40754f
lea ecx, [ebx + 0x64]
lea edx, [esp + 0x210]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x407556
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407570
mov edx, dword [0x457494]
lea eax, [esp + 0xc]
mov dword [edi], edx
add eax, 0xfffffffe
jmp 0x407590
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407590
mov ecx, dword [0x457410]
mov dword [eax], ecx
mov ecx, dword [0x457414]
mov dword [eax + 4], ecx
mov ecx, dword [0x457418]
mov dword [eax + 8], ecx
mov ecx, dword [0x45741c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x457420]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x457424]
lea edi, [esp + 0xc]
mov dword [eax + 0x14], ecx
add edi, 0xfffffffe
jmp 0x4075e0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4075e0
mov dword [edi], edx
lea edx, [esp + 0xc]
push edx
call fcn.0040acb0
add esp, 4
lea eax, [esp + 0xc]
add eax, 0xfffffffe
pop edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407603
mov ecx, dword [str.ShanHu]
mov edx, dword [0x457488]
mov dword [eax], ecx
mov ecx, dword [0x45748c]
mov dword [eax + 4], edx
mov dx, word [0x457490]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 8]
add eax, 0xfffffffe
jmp 0x407640
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407640
mov ecx, dword [str..ini]
mov edx, dword [0x45747c]
mov dword [eax], ecx
mov cx, word [0x457480]
mov dword [eax + 4], edx
lea edx, [esp + 8]
push edx
mov word [eax + 8], cx
lea eax, [esp + 0x214]
push eax
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x210]
push ecx
push str.InstallPath
mov ecx, ebx
call fcn.00406fe0
push 0x206
lea edx, [esp + 0x41e]
push 0
push edx
mov word [esp + 0x424], 0
call fcn.00413010
add esp, 0xc
xor eax, eax
pop ebx
lea ecx, [ecx]
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0x414], cx
add eax, 2
test cx, cx
jne 0x4076c0
lea eax, [esp + 0x414]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4076e1
mov ecx, dword [0x457410]
mov edx, dword [0x457414]
mov dword [eax], ecx
mov ecx, dword [0x457418]
mov dword [eax + 4], edx
mov edx, dword [0x45741c]
mov dword [eax + 8], ecx
mov ecx, dword [0x457420]
mov dword [eax + 0xc], edx
mov edx, dword [0x457424]
push 0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [esp + 0x430]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40776d
push 0x104
lea edx, [esp + 0x210]
push edx
push 1
push eax
mov eax, dword [esp + 0x10]
push str.InstallPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.00412ff5
add esp, 0x620
ret