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

Disassembly:
push ebp
lea ebp, [esp - 0x647c]
mov eax, 0x647c
call fcn.00530230
push 0xffffffffffffffff
push 0x54bc15
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x58cb30]
xor eax, ebp
mov dword [ebp + 0x6478], 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 + 0x6484]
mov byte [ebp - 0x14], bh
push 1
push 0x800
lea eax, [ebp + 0x5478]
push eax
call fcn.004a2900
push 0x800
lea eax, [ebp + 0x5478]
push eax
call fcn.004a1860
push 0x800
push str.Settings.reg
lea eax, [ebp + 0x5478]
push eax
call fcn.004bda80
push 0x800
lea eax, [ebp + 0x5478]
push eax
lea eax, [ebp + 0x2478]
push eax
call fcn.004bdae0
test bh, bh
jne 0x40fe0f
push 0
push 1
push 0x800
lea eax, [ebp + 0x5478]
push eax
push str.Settings.reg
call fcn.004a2690
lea eax, [ebp + 0x5478]
push eax
call fcn.00491350
test al, al
jne 0x40fe0f
cmp byte [ebp + 0x6488], al
jne 0x40feb5
push 0x800
lea eax, [ebp + 0x2478]
push eax
lea eax, [ebp + 0x5478]
push eax
call fcn.004bdae0
jmp 0x40fe18
cmp byte [ebp + 0x6488], 0
jne 0x40fe48
movzx eax, bh
xor eax, 1
add eax, 0x5b4
push eax
call fcn.004b7300
push dword [ebp - 0x14]
push str..reg
lea ecx, [ebp + 0x5478]
push ecx
push eax
push dword [0x5933dc]
call fcn.0040cb80
test al, al
je 0x40feb5
test bh, bh
je 0x40fe62
push 1
push str.ExportedSettings
push 0x558718
call fcn.004d0e60
jmp 0x40ff7f
lea ecx, [ebp]
call fcn.004bdb30
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 + 0x5478]
push eax
call fcn.004929b0
test al, al
jne 0x40fee0
lea eax, [ebp + 0x5478]
push eax
mov ecx, 0x5d381c
call fcn.004880a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00407c90
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6478]
xor ecx, ebp
call fcn.00530218
lea esp, [ebp + 0x647c]
pop ebp
ret 8
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
call fcn.004bdc70
test al, al
je 0x40ff57
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x5b
jne 0x40fee0
push 0x22
push str._HKEY_CURRENT_USERSoftwareWinRAR
push eax
call fcn.004c1bf0
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x40ff1f
movzx ecx, word [eax + 0x44]
cmp ecx, 0x5c
je 0x40ff1b
cmp ecx, 0x5d
jne 0x40ff1f
mov bl, 1
jmp 0x40ff21
xor bl, bl
push 0x23
push str._HKEY_LOCAL_MACHINESoftwareWinRAR
push eax
call fcn.004c1bf0
test eax, eax
jne 0x40ff47
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x46]
cmp eax, 0x5c
je 0x40ff43
cmp eax, 0x5d
jne 0x40ff47
mov al, 1
jmp 0x40ff49
xor al, al
test bl, bl
jne 0x40fee0
test al, al
je 0x40fea6
jmp 0x40fee0
mov dword [ebp - 4], 0
push 0x558718
call fcn.004cf470
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp]
test eax, eax
je 0x40ff7f
push eax
call fcn.0053867f
add esp, 4
lea eax, [ebp + 0x3478]
push eax
push 1
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x800
lea eax, [ebp + 0x3478]
push eax
push str.regedit.exe
push eax
call fcn.004a2fb0
test bh, bh
mov eax, str._e___s__HKEY_CURRENT_USERSoftwareWinRAR
jne 0x40ffb9
mov eax, 0x5595ac
lea ecx, [ebp + 0x5478]
push ecx
push eax
push 0x900
lea eax, [ebp + 0x1278]
push eax
call fcn.00404ce0
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 [0x5933dc]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x3478]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x1278]
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 0x41006d
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 0x410111
test bl, bl
je 0x410102
push 0x800
lea eax, [ebp + 0x5478]
push eax
lea eax, [ebp + 0x4478]
push eax
call fcn.004bdae0
push 0x800
lea eax, [ebp + 0x4478]
push eax
call fcn.00491c60
test eax, eax
je 0x410102
lea eax, [ebp + 0x4478]
push eax
push str._e___s__HKEY_LOCAL_MACHINESoftwareWinRAR
push 0x900
lea eax, [ebp + 0x1278]
push eax
call fcn.00404ce0
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x410102
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 + 0x4478]
push eax
lea eax, [ebp + 0x5478]
push eax
call fcn.00411920
push str.ExportedSettings
push 0x558718
call fcn.004cf830
test bl, bl
je 0x4101f8
test bh, bh
jne 0x4101a8
push 0
lea eax, [ebp + 0x5c]
push eax
call fcn.004578c0
push 0x800
push 0x558718
lea eax, [ebp + 0x4478]
push eax
push str.CustomExt
push 0x558a1c
call fcn.004d0210
push 0
push 0
lea eax, [ebp + 0x5c]
push eax
call fcn.00457da0
test al, al
lea eax, [ebp + 0x4478]
je 0x410170
push str.unknown_random
push eax
call fcn.004127a0
jmp 0x41018d
push 0
push 0
push 0
push str.unknown_random
push eax
lea eax, [ebp + 0x5c]
push eax
push 0
push dword [0x5933dc]
call fcn.00412290
push 1
mov ecx, 0x5c8968
call fcn.004da260
push str.ExportedSettings
push 0x558718
call fcn.004cf830
lea eax, [ebp + 0x5478]
push eax
movzx eax, bh
xor eax, 1
add eax, 0x460
push eax
call fcn.004b7300
push eax
push 0x900
lea eax, [ebp + 0x78]
push eax
call fcn.00404ce0
add esp, 0x10
push 0x2fb
call fcn.004b7300
push 0x10000
push eax
lea eax, [ebp + 0x78]
push eax
push dword [0x5933dc]
call fcn.004feae0
mov al, bl
jmp 0x40feb7
cmp byte [ebp + 0x6488], 0
jne 0x41021b
lea eax, [ebp + 0x1278]
push eax
push 0x201
call fcn.004b7300
push eax
call fcn.005037c0
add esp, 8
mov al, bl
jmp 0x40feb7