Function at 0x47e25b
Capabilities:
Get common file path

Disassembly:
push 0x230
mov eax, 0x51e039
call fcn.004f21c7
and dword [ebp - 0x238], 0
cmp dword [esi + 4], 0
je 0x47e27f
xor eax, eax
inc eax
jmp 0x47e5d1
push 0x582e91
push 0xc3c
call fcn.004eb6e3
pop ecx
pop ecx
mov dword [esi + 4], eax
test eax, eax
je 0x47e5d1
mov edi, 0x104
push edi
add eax, 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x47e5b9
call fcn.004060be
test al, al
je 0x47e2d4
mov dword [ebp - 0x228], str.360elam64.sys
mov dword [ebp - 0x220], str.360elam64
jmp 0x47e2e8
mov dword [ebp - 0x228], str.360elam.sys
mov dword [ebp - 0x220], str.360elam
push dword [ebp - 0x228]
mov edx, dword [esi + 4]
push edi
add edx, 0x820
call fcn.00424ffd
test eax, eax
jl 0x47e5b9
mov eax, dword [esi + 4]
mov ebx, 0x208
push str.drivers_
add eax, ebx
push eax
call fcn.0042388f
test eax, eax
jl 0x47e5b9
mov eax, dword [esi + 4]
push dword [ebp - 0x228]
add eax, ebx
push eax
call fcn.0042388f
test eax, eax
jl 0x47e5b9
push str.softmgr_
lea eax, [ebp - 0x21c]
push eax
call fcn.00405747
push dword [ebp - 0x228]
and dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
call fcn.004047b1
lea eax, [ebp - 0x22c]
call fcn.00405fd8
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x230]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0042453d
mov edx, dword [esi + 4]
pop ecx
pop ecx
push dword [eax]
add edx, 0x410
push edi
call fcn.00424ffd
mov ebx, eax
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
call fcn.0040557a
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.0040557a
test ebx, ebx
jl 0x47e5ab
push dword [ebp - 0x220]
mov edx, dword [esi + 4]
push edi
call fcn.00424ffd
test eax, eax
jl 0x47e5ab
mov edx, dword [esi + 4]
push str.360elam_driver
push edi
add edx, 0x618
call fcn.00424ffd
test eax, eax
jl 0x47e5ab
lea eax, [ebp - 0x224]
push eax
push 1
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetControlEarlyLaunch
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47e5ab
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004e7380
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
push ebx
lea eax, [ebp - 0x23c]
push eax
push ebx
push str.BackupPath
push dword [ebp - 0x224]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x22c], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call ebx
test eax, eax
jne 0x47e59f
mov eax, dword [ebp - 0x234]
add eax, 2
push eax
call fcn.004eaa86
pop ecx
mov dword [ebp - 0x220], eax
test eax, eax
je 0x47e59f
mov ecx, dword [ebp - 0x234]
add ecx, 2
push ecx
push 0
push eax
call fcn.004e7380
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x23c]
push eax
push 0
push str.BackupPath
push dword [ebp - 0x224]
call ebx
xor ebx, ebx
inc ebx
mov dword [ebp - 0x230], eax
test eax, eax
jne 0x47e4f6
push dword [ebp - 0x220]
lea edx, [ebp - 0x218]
push edi
mov dword [ebp - 0x22c], ebx
call fcn.00424ffd
mov dword [ebp - 0x230], eax
push dword [ebp - 0x220]
call fcn.004e8476
cmp dword [ebp - 0x22c], 0
pop ecx
je 0x47e59f
cmp dword [ebp - 0x230], 0
jne 0x47e59f
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x53c890
lea eax, [ebp - 0x218]
push eax
call fcn.0042388f
test eax, eax
jl 0x47e5ab
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push eax
call fcn.0042388f
test eax, eax
jl 0x47e5ab
mov edx, dword [esi + 4]
lea eax, [ebp - 0x218]
push eax
push edi
add edx, 0xa28
call fcn.00424ffd
test eax, eax
jl 0x47e5ab
mov eax, dword [esi + 4]
and dword [eax + 0xc30], 0
mov eax, dword [esi + 4]
mov dword [eax + 0xc34], ebx
mov eax, dword [esi + 4]
mov dword [eax + 0xc38], ebx
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov dword [ebp - 0x238], ebx
call fcn.0040557a
jmp 0x47e5cb
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.0040557a
mov eax, dword [esi + 4]
test eax, eax
je 0x47e5cb
push eax
call fcn.004e7360
and dword [esi + 4], 0
pop ecx
mov eax, dword [ebp - 0x238]
call fcn.004f224a
ret