Function at 0x4acbf1
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x178c
call fcn.0059fbd0
push ebx
push esi
push edi
lea eax, [ebp - 0x448]
push eax
mov esi, 0x5b07d8
push esi
push str.Installer
push str.Software
call fcn.00457a1c
xor edi, edi
cmp word [ebp - 0x448], di
je 0x4ace97
lea eax, [ebp - 0x448]
push eax
call fcn.00401b98
test al, al
je 0x4ace97
push edi
mov ebx, 0x1389
push ebx
lea eax, [ebp - 0x38]
push eax
push 0x5ea3b0
push 0x5ea450
push 0x5ea478
push dword [ebp + 0xc]
lea eax, [ebp - 0x748]
mov dword [ebp - 0x38], 0x1388
mov dword [ebp - 0x34], 0x5bc190
mov dword [ebp - 0x30], 0x5ea2c8
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], str.USB
mov dword [ebp - 0x24], 0x5ea338
mov dword [ebp - 0x20], 0x138a
mov dword [ebp - 0x1c], 0x5ea37c
mov dword [ebp - 0x18], 0x5ea384
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.004bf8b8
lea edi, [ebp - 0x748]
call fcn.004c0124
lea ecx, [ebx - 1]
cmp eax, ecx
mov dword [ebp - 8], eax
jl 0x4ace8c
cmp eax, 0x138a
je 0x4ace8c
and word [ebp - 0x240], 0
cmp eax, ebx
jne 0x4accff
push 0x5ea490
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 0xc]
call fcn.004a22e6
cmp word [ebp - 0x240], 0
jne 0x4acd15
jmp 0x4ace8c
cmp eax, ecx
jne 0x4acd15
lea eax, [ebp - 0x240]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x448]
lea eax, [ebp - 0x1580]
call fcn.004016d4
push esi
lea eax, [ebp - 0x1580]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x950]
push eax
call fcn.004a2dab
lea eax, [ebp - 0x950]
push eax
lea eax, [ebp - 0x448]
push eax
mov ebx, 0x3e8
mov eax, ebx
call fcn.004a206e
test al, al
je 0x4ace8c
push esi
push str.registration.txt
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0xb58]
push eax
call fcn.004a2dab
lea eax, [ebp - 0xf68]
push eax
push esi
push str.Name
mov edi, str.Registration
push edi
call fcn.00457b24
lea eax, [ebp - 0xd60]
push eax
push esi
push str.Location
push edi
call fcn.00457b24
push 0
push 0x5dd968
push edi
call fcn.00402277
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1788]
push eax
push esi
push 0x5e9484
push edi
call fcn.00457b24
lea eax, [ebp - 0x1788]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xd60]
push eax
lea eax, [ebp - 0xf68]
push eax
push 0x5ea550
mov esi, 0x104
lea edi, [ebp - 0x1170]
call fcn.004a9039
add esp, 0x14
push ebx
push 2
push 0
push 0xc0000000
lea eax, [ebp - 0xb58]
push eax
call fcn.004a1f44
mov dword [ebp - 4], eax
push str.Switch_r_n
lea eax, [ebp - 4]
push eax
call fcn.004a3887
mov eax, edi
push eax
lea eax, [ebp - 4]
push eax
call fcn.004a3887
cmp dword [ebp - 4], 0xffffffff
je 0x4ace3c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0x1388
jne 0x4ace8c
lea eax, [ebp - 0xb58]
push eax
lea eax, [ebp - 0x950]
push eax
push str.__clear__label__Switch_Installer___type_data____s____s_
mov esi, 0x208
lea edi, [ebp - 0x1378]
call fcn.004a9039
add esp, 0xc
push 1
push dword [ebp + 0xc]
mov eax, edi
call fcn.0040526c
push dword [ebp + 8]
call fcn.004695e6
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esi, [ebp - 0x748]
call fcn.00409cea
pop edi
pop esi
pop ebx
leave
ret 8