Function at 0x401950
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40bf6c
push eax
mov eax, 0x419c
mov dword fs:[0], esp
call fcn.00403ac0
mov eax, dword [0x410200]
mov dword [esp + 0x4198], eax
lea eax, [esp + 0x94]
push 0x104
push eax
call fcn.00401f90
add esp, 8
test al, al
je 0x401c3a
push ebx
push edi
xor ebx, ebx
mov edi, 0xf
lea eax, [esp + 0x9c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4019b7
push ebp
sub eax, edx
push eax
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x38]
call fcn.00401620
push str._setup.xml
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x41bc], ebx
call fcn.004018a0
mov ecx, dword [eax + 0x18]
mov ebp, 0x10
add esp, 0xc
cmp ecx, ebp
jb 0x401a02
mov eax, dword [eax + 4]
jmp 0x401a05
add eax, 4
push esi
push 0x40d290
push eax
call fcn.0040450e
mov esi, eax
mov eax, dword [esp + 0x38]
add esp, 8
cmp esi, ebx
sete byte [esp + 0x13]
cmp eax, ebp
jb 0x401a32
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00403f98
add esp, 4
cmp dword [esp + 0x4c], ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov dword [esp + 0x41b4], 0xffffffff
jb 0x401a5c
mov edx, dword [esp + 0x38]
push edx
call fcn.00403f98
add esp, 4
cmp byte [esp + 0x13], bl
jne 0x401c36
push esi
push 0x4000
lea eax, [esp + 0x1b0]
push 1
push eax
call fcn.004043fb
add esp, 0x10
cmp eax, 0x4000
jb 0x401a8a
mov eax, 0x3fff
push esi
mov byte [esp + eax + 0x1ac], bl
call fcn.004043a5
lea eax, [esp + 0x1ac]
add esp, 4
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401ab0
sub eax, edx
push eax
lea ecx, [esp + 0x1ac]
push ecx
lea ecx, [esp + 0x58]
call fcn.00401620
push 0xb
push ebx
push str._SharePath_
lea ecx, [esp + 0x5c]
mov dword [esp + 0x41c0], 1
call fcn.00401180
push 0xc
push ebx
push str.__SharePath_
lea ecx, [esp + 0x5c]
mov edi, eax
call fcn.00401180
cmp edi, 0xffffffff
mov esi, eax
je 0x401c23
cmp esi, 0xffffffff
je 0x401c23
push edi
push ebx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x5c]
call fcn.00401860
push str._SharePath_
push eax
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x41c0], 2
call fcn.004018a0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x41b4], 4
call fcn.00401410
mov eax, dword [esp + 0x9c]
sub esi, eax
push esi
push eax
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00401860
mov eax, dword [esp + 0x80]
cmp eax, ebx
ja 0x401b94
lea ecx, [esp + 0x6c]
call fcn.00401410
lea ecx, [esp + 0x88]
call fcn.00401410
lea ecx, [esp + 0x50]
call fcn.00401410
jmp 0x401c36
cmp dword [esp + 0x84], ebp
mov ecx, dword [esp + 0x70]
jae 0x401ba5
lea ecx, [esp + 0x70]
push ecx
push eax
lea edx, [esp + 0x1b0]
push edx
call fcn.00403f9d
mov ecx, dword [str.SOFTWAREKWMUSIC]
mov esi, dword [esp + 0x8c]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 2
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c0e
mov eax, dword [esp + 0x14]
push esi
lea edx, [esp + 0x1ac]
push edx
push 1
push ebx
push str.SHARE_PATH
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401c03
mov byte [esp + 0x1a8], bl
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x6c]
call fcn.00401410
lea ecx, [esp + 0x88]
call fcn.00401410
cmp dword [esp + 0x68], ebp
jb 0x401c36
mov edx, dword [esp + 0x54]
push edx
call fcn.00403f98
add esp, 4
pop esi
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x419c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4198]
call fcn.00403b2e
add esp, 0x41a8
ret