Function at 0x40d4e0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6480]
mov eax, 0x6480
call fcn.0051dcc0
push 0xffffffffffffffff
push 0x538d35
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x572844]
xor eax, ebp
mov dword [ebp + 0x647c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov bh, byte [ebp + 0x6488]
mov byte [ebp - 0x14], bh
push 1
push 0x800
lea eax, [ebp + 0x547c]
push eax
call fcn.004949d0
push 0x800
lea eax, [ebp + 0x547c]
push eax
call fcn.00493970
push 0x800
push str.Settings.reg
lea eax, [ebp + 0x547c]
push eax
call fcn.004b0300
push 0x800
lea eax, [ebp + 0x547c]
push eax
lea eax, [ebp + 0x247c]
push eax
call fcn.004b0360
test bh, bh
je 0x40d62f
push 1
push str.ExportedSettings
push 0x54266c
call fcn.004c3de0
cmp byte [ebp + 0x648c], 0
jne 0x40d5cd
movzx eax, bh
xor eax, 1
add eax, 0x5b4
push eax
call fcn.004a9c90
push dword [ebp - 0x14]
push str..reg
lea ecx, [ebp + 0x547c]
push ecx
push eax
push dword [0x57a0c8]
call fcn.00409de0
test al, al
je 0x40d628
test bh, bh
jne 0x40d735
lea ecx, [ebp]
call fcn.004b03b0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp]
push eax
lea eax, [ebp + 0x547c]
push eax
call fcn.00484ba0
test al, al
jne 0x40d682
lea eax, [ebp + 0x547c]
push eax
mov ecx, 0x5b68fc
call fcn.0047b330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00405620
xor al, al
jmp 0x40d9db
push 0
push 1
push 0x800
lea eax, [ebp + 0x547c]
push eax
push str.Settings.reg
call fcn.00494760
lea eax, [ebp + 0x547c]
push eax
call fcn.004837b0
test al, al
jne 0x40d594
cmp byte [ebp + 0x648c], al
jne 0x40d628
push 0x800
lea eax, [ebp + 0x247c]
push eax
lea eax, [ebp + 0x547c]
push eax
call fcn.004b0360
jmp 0x40d59d
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
call fcn.004b04f0
test al, al
je 0x40d6f8
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x5b
jne 0x40d682
push 0x22
push str._HKEY_CURRENT_USERSoftwareWinRAR
push eax
call fcn.004b4460
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x40d6c1
movzx ecx, word [eax + 0x44]
cmp ecx, 0x5c
je 0x40d6bd
cmp ecx, 0x5d
jne 0x40d6c1
mov bl, 1
jmp 0x40d6c3
xor bl, bl
push 0x23
push str._HKEY_LOCAL_MACHINESoftwareWinRAR
push eax
call fcn.004b4460
test eax, eax
jne 0x40d6e9
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x46]
cmp eax, 0x5c
je 0x40d6e5
cmp eax, 0x5d
jne 0x40d6e9
mov al, 1
jmp 0x40d6eb
xor al, al
test bl, bl
jne 0x40d682
test al, al
jne 0x40d682
jmp 0x40d619
mov dword [ebp - 4], 0
push 0x54266c
call fcn.004c2460
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp]
test ecx, ecx
je 0x40d735
cmp byte [ebp + 0x10], 0
je 0x40d72c
mov eax, dword [ebp + 8]
add eax, eax
push eax
push ecx
call fcn.004ad810
mov ecx, dword [ebp]
push ecx
call fcn.00525b95
add esp, 4
lea eax, [ebp + 0x347c]
push eax
push 1
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x800
lea eax, [ebp + 0x347c]
push eax
push str.regedit.exe
push eax
call fcn.00495090
test bh, bh
mov eax, str._e___s__HKEY_CURRENT_USERSoftwareWinRAR
jne 0x40d76f
mov eax, 0x543524
lea ecx, [ebp + 0x547c]
push ecx
push eax
push 0x900
lea eax, [ebp + 0x127c]
push eax
call fcn.00402c90
add esp, 0x10
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x40
mov eax, dword [0x57a0c8]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x347c]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x127c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 1
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne bl
test eax, eax
je 0x40d823
push 0x2710
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bh, bh
je 0x40d8c7
test bl, bl
je 0x40d8b8
push 0x800
lea eax, [ebp + 0x547c]
push eax
lea eax, [ebp + 0x447c]
push eax
call fcn.004b0360
push 0x800
lea eax, [ebp + 0x447c]
push eax
call fcn.00483e40
test eax, eax
je 0x40d8b8
lea eax, [ebp + 0x447c]
push eax
push str._e___s__HKEY_LOCAL_MACHINESoftwareWinRAR
push 0x900
lea eax, [ebp + 0x127c]
push eax
call fcn.00402c90
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40d8b8
push 0x2710
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x447c]
push eax
lea eax, [ebp + 0x547c]
push eax
call fcn.0040f100
push str.ExportedSettings
push 0x54266c
call fcn.004c27c0
test bl, bl
je 0x40d9b6
test bh, bh
jne 0x40d96e
push 0
lea eax, [ebp + 0x60]
push eax
call fcn.0044ca40
push 0x400
push 0x54266c
lea eax, [ebp + 0x4c7c]
push eax
push str.CustomExt
push 0x5429fc
call fcn.004c3190
push 0
push 0
lea eax, [ebp + 0x60]
push eax
call fcn.0044cf30
test al, al
lea eax, [ebp + 0x4c7c]
je 0x40d936
push str.unknown_random
push eax
call fcn.0040ff60
jmp 0x40d953
push 0
push 0
push 0
push str.unknown_random
push eax
lea eax, [ebp + 0x60]
push eax
push 0
push dword [0x57a0c8]
call fcn.0040fa70
push 1
mov ecx, 0x5aa610
call fcn.004cd270
push str.ExportedSettings
push 0x54266c
call fcn.004c27c0
lea eax, [ebp + 0x547c]
push eax
movzx eax, bh
xor eax, 1
add eax, 0x460
push eax
call fcn.004a9c90
push eax
push 0x900
lea eax, [ebp + 0x7c]
push eax
call fcn.00402c90
add esp, 0x10
push 0x2fb
call fcn.004a9c90
push 0
push eax
lea eax, [ebp + 0x7c]
push eax
push dword [0x57a0c8]
call fcn.004edd90
jmp 0x40d9d9
cmp byte [ebp + 0x648c], 0
jne 0x40d9d9
lea eax, [ebp + 0x127c]
push eax
push 0x201
call fcn.004a9c90
push eax
call fcn.004f27d0
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x647c]
xor ecx, ebp
call fcn.0051dca8
lea esp, [ebp + 0x6480]
pop ebp
ret 8