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

Disassembly:
push ebp
lea ebp, [esp - 0x5460]
mov eax, 0x5460
call fcn.004ebbf0
push 0xffffffffffffffff
push 0x503810
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x528af4]
xor eax, ebp
mov dword [ebp + 0x545c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov bl, byte [ebp + 0x5468]
mov byte [ebp - 0x18], bl
push 1
push 0x800
lea eax, [ebp + 0x445c]
push eax
call fcn.004783d0
push 0x800
lea eax, [ebp + 0x445c]
push eax
call fcn.00477290
push 0x800
push str.Settings.reg
lea eax, [ebp + 0x445c]
push eax
call fcn.0048e6d0
push 0x800
lea eax, [ebp + 0x445c]
push eax
lea eax, [ebp + 0x245c]
push eax
call fcn.0048e710
test bl, bl
je 0x40a935
push 1
push str.ExportedSettings
push 0x50b8c4
call fcn.004a08f0
mov bh, byte [ebp + 0x546c]
test bh, bh
jne 0x40a8cf
push dword [ebp - 0x18]
push str..reg
lea eax, [ebp + 0x445c]
push eax
xor eax, eax
test bl, bl
sete al
add eax, 0x5b4
push eax
call fcn.00488530
push eax
push dword [0x538900]
call fcn.00407460
test al, al
je 0x40a92e
test bl, bl
jne 0x40a9fc
lea ecx, [ebp]
call fcn.0048e750
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 + 0x445c]
push eax
call fcn.0046a5c0
test al, al
jne 0x40a990
lea eax, [ebp + 0x445c]
push eax
mov ecx, 0x56df60
call fcn.00462f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00403fc0
xor al, al
jmp 0x40ab57
push 0
push 1
push 0x800
lea eax, [ebp + 0x445c]
push eax
push str.Settings.reg
call fcn.004781a0
lea eax, [ebp + 0x445c]
push eax
call fcn.00469360
test al, al
jne 0x40a894
mov bh, byte [ebp + 0x546c]
test bh, bh
jne 0x40a92e
xor ecx, ecx
nop
movzx eax, word [ebp + ecx + 0x245c]
mov word [ebp + ecx + 0x445c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40a970
jmp 0x40a89e
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
call fcn.0048e890
test al, al
je 0x40a9d4
mov eax, dword [ebp - 0x18]
cmp word [eax], 0x5b
jne 0x40a990
push 0x22
push str._HKEY_CURRENT_USERSoftwareWinRAR
push eax
call fcn.00491b00
test eax, eax
jne 0x40a91f
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0x44]
cmp eax, 0x5c
je 0x40a990
cmp eax, 0x5d
je 0x40a990
jmp 0x40a91f
mov dword [ebp - 4], 0
push 0x50b8c4
call fcn.0049f5a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp]
test eax, eax
je 0x40a9fc
push eax
call fcn.004f252e
add esp, 4
lea eax, [ebp + 0x345c]
push eax
push 1
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x800
lea eax, [ebp + 0x345c]
push eax
push str.regedit.exe
push eax
call fcn.004789f0
test bl, bl
mov eax, str._e___s__HKEY_CURRENT_USERSoftwareWinRAR
jne 0x40aa36
mov eax, 0x50c534
lea ecx, [ebp + 0x445c]
push ecx
push eax
push 0x900
lea eax, [ebp + 0x125c]
push eax
call fcn.004028e0
push 0x3c
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.004ee100
add esp, 0x1c
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
mov eax, dword [0x538900]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 0x345c]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x125c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], 1
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne al
mov byte [ebp - 0x11], al
test al, al
je 0x40aabb
push 0x1388
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x40aace
push str.ExportedSettings
push 0x50b8c4
call fcn.0049f910
cmp byte [ebp - 0x11], 0
je 0x40ab36
test bl, bl
jne 0x40aadd
call fcn.0040a730
lea eax, [ebp + 0x445c]
push eax
xor eax, eax
test bl, bl
sete al
add eax, 0x460
push eax
call fcn.00488530
push eax
push 0x900
lea eax, [ebp + 0x5c]
push eax
call fcn.004028e0
add esp, 0x10
push 0
push 0x2fb
call fcn.00488530
push eax
lea eax, [ebp + 0x5c]
push eax
push dword [0x538900]
call fcn.004c4910
jmp 0x40ab54
test bh, bh
jne 0x40ab54
lea eax, [ebp + 0x125c]
push eax
push 0x201
call fcn.00488530
push eax
call fcn.004cf640
add esp, 8
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x545c]
xor ecx, ebp
call fcn.004ebbd8
lea esp, [ebp + 0x5460]
pop ebp
ret 8