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

Disassembly:
push ebp
lea ebp, [esp - 0x647c]
mov eax, 0x647c
call fcn.0052f720
push 0xffffffffffffffff
push 0x54b105
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x58bb30]
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.004a1f20
push 0x800
lea eax, [ebp + 0x5478]
push eax
call fcn.004a0eb0
push 0x800
push str.Settings.reg
lea eax, [ebp + 0x5478]
push eax
call fcn.004bd030
push 0x800
lea eax, [ebp + 0x5478]
push eax
lea eax, [ebp + 0x2478]
push eax
call fcn.004bd090
test bh, bh
jne 0x40fd7f
push 0
push 1
push 0x800
lea eax, [ebp + 0x5478]
push eax
push str.Settings.reg
call fcn.004a1cb0
lea eax, [ebp + 0x5478]
push eax
call fcn.00490c30
test al, al
jne 0x40fd7f
cmp byte [ebp + 0x6488], al
jne 0x40fe25
push 0x800
lea eax, [ebp + 0x2478]
push eax
lea eax, [ebp + 0x5478]
push eax
call fcn.004bd090
jmp 0x40fd88
cmp byte [ebp + 0x6488], 0
jne 0x40fdb8
movzx eax, bh
xor eax, 1
add eax, 0x5b4
push eax
call fcn.004b68d0
push dword [ebp - 0x14]
push str..reg
lea ecx, [ebp + 0x5478]
push ecx
push eax
push dword [0x5923dc]
call fcn.0040cb10
test al, al
je 0x40fe25
test bh, bh
je 0x40fdd2
push 1
push str.ExportedSettings
push 0x557718
call fcn.004d0410
jmp 0x40feef
lea ecx, [ebp]
call fcn.004bd0e0
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.00492010
test al, al
jne 0x40fe50
lea eax, [ebp + 0x5478]
push eax
mov ecx, 0x5d281c
call fcn.004878a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00407c30
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.0052f708
lea esp, [ebp + 0x647c]
pop ebp
ret 8
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
call fcn.004bd220
test al, al
je 0x40fec7
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x5b
jne 0x40fe50
push 0x22
push str._HKEY_CURRENT_USERSoftwareWinRAR
push eax
call fcn.004c11b0
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x40fe8f
movzx ecx, word [eax + 0x44]
cmp ecx, 0x5c
je 0x40fe8b
cmp ecx, 0x5d
jne 0x40fe8f
mov bl, 1
jmp 0x40fe91
xor bl, bl
push 0x23
push str._HKEY_LOCAL_MACHINESoftwareWinRAR
push eax
call fcn.004c11b0
test eax, eax
jne 0x40feb7
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x46]
cmp eax, 0x5c
je 0x40feb3
cmp eax, 0x5d
jne 0x40feb7
mov al, 1
jmp 0x40feb9
xor al, al
test bl, bl
jne 0x40fe50
test al, al
je 0x40fe16
jmp 0x40fe50
mov dword [ebp - 4], 0
push 0x557718
call fcn.004cea30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp]
test eax, eax
je 0x40feef
push eax
call fcn.00537b6f
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.004a25d0
test bh, bh
mov eax, str._e___s__HKEY_CURRENT_USERSoftwareWinRAR
jne 0x40ff29
mov eax, 0x55859c
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 [0x5923dc]
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 0x40ffdd
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 0x410081
test bl, bl
je 0x410072
push 0x800
lea eax, [ebp + 0x5478]
push eax
lea eax, [ebp + 0x4478]
push eax
call fcn.004bd090
push 0x800
lea eax, [ebp + 0x4478]
push eax
call fcn.004912c0
test eax, eax
je 0x410072
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 0x410072
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.00411890
push str.ExportedSettings
push 0x557718
call fcn.004cedf0
test bl, bl
je 0x410168
test bh, bh
jne 0x410118
push 0
lea eax, [ebp + 0x5c]
push eax
call fcn.00457100
push 0x800
push 0x557718
lea eax, [ebp + 0x4478]
push eax
push str.CustomExt
push 0x557a1c
call fcn.004cf7c0
push 0
push 0
lea eax, [ebp + 0x5c]
push eax
call fcn.004575e0
test al, al
lea eax, [ebp + 0x4478]
je 0x4100e0
push str.unknown_random
push eax
call fcn.00412710
jmp 0x4100fd
push 0
push 0
push 0
push str.unknown_random
push eax
lea eax, [ebp + 0x5c]
push eax
push 0
push dword [0x5923dc]
call fcn.00412200
push 1
mov ecx, 0x5c7968
call fcn.004d9820
push str.ExportedSettings
push 0x557718
call fcn.004cedf0
lea eax, [ebp + 0x5478]
push eax
movzx eax, bh
xor eax, 1
add eax, 0x460
push eax
call fcn.004b68d0
push eax
push 0x900
lea eax, [ebp + 0x78]
push eax
call fcn.00404ce0
add esp, 0x10
push 0x2fb
call fcn.004b68d0
push 0x10000
push eax
lea eax, [ebp + 0x78]
push eax
push dword [0x5923dc]
call fcn.004fdf00
mov al, bl
jmp 0x40fe27
cmp byte [ebp + 0x6488], 0
jne 0x41018b
lea eax, [ebp + 0x1278]
push eax
push 0x201
call fcn.004b68d0
push eax
call fcn.00502bd0
add esp, 8
mov al, bl
jmp 0x40fe27