Function at 0x401c30
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40e25c
push eax
mov eax, 0x419c
mov dword fs:[0], esp
call fcn.00405ac0
mov eax, dword [0x412200]
mov dword [esp + 0x4198], eax
lea eax, [esp + 0x94]
push 0x104
push eax
call fcn.004030d0
add esp, 8
test al, al
je 0x401f1a
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 0x401c97
push ebp
sub eax, edx
push eax
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x38]
call fcn.00401740
push str._setup.xml
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x41bc], ebx
call fcn.00401b40
mov ecx, dword [eax + 0x18]
mov ebp, 0x10
add esp, 0xc
cmp ecx, ebp
jb 0x401ce2
mov eax, dword [eax + 4]
jmp 0x401ce5
add eax, 4
push esi
push 0x40f2d4
push eax
call fcn.004065e5
mov esi, eax
mov eax, dword [esp + 0x38]
add esp, 8
cmp esi, ebx
sete byte [esp + 0x13]
cmp eax, ebp
jb 0x401d12
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00405f98
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 0x401d3c
mov edx, dword [esp + 0x38]
push edx
call fcn.00405f98
add esp, 4
cmp byte [esp + 0x13], bl
jne 0x401f16
push esi
push 0x4000
lea eax, [esp + 0x1b0]
push 1
push eax
call fcn.004064d2
add esp, 0x10
cmp eax, 0x4000
jb 0x401d6a
mov eax, 0x3fff
push esi
mov byte [esp + eax + 0x1ac], bl
call fcn.0040647c
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 0x401d90
sub eax, edx
push eax
lea ecx, [esp + 0x1ac]
push ecx
lea ecx, [esp + 0x58]
call fcn.00401740
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 0x401f03
cmp esi, 0xffffffff
je 0x401f03
push edi
push ebx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x5c]
call fcn.00401870
push str._SharePath_
push eax
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x41c0], 2
call fcn.00401b40
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.00401870
mov eax, dword [esp + 0x80]
cmp eax, ebx
ja 0x401e74
lea ecx, [esp + 0x6c]
call fcn.00401410
lea ecx, [esp + 0x88]
call fcn.00401410
lea ecx, [esp + 0x50]
call fcn.00401410
jmp 0x401f16
cmp dword [esp + 0x84], ebp
mov ecx, dword [esp + 0x70]
jae 0x401e85
lea ecx, [esp + 0x70]
push ecx
push eax
lea edx, [esp + 0x1b0]
push edx
call fcn.00405f9d
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 0x401eee
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 0x401ee3
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 0x401f16
mov edx, dword [esp + 0x54]
push edx
call fcn.00405f98
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.00405b2e
add esp, 0x41a8
ret