Function at 0x485692
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x230
mov eax, 0x528d14
call fcn.004fc737
and dword [ebp - 0x238], 0
cmp dword [esi + 4], 0
je 0x4856b6
xor eax, eax
inc eax
jmp 0x485a08
push 0x590f51
push 0xc3c
call fcn.004f5c13
pop ecx
pop ecx
mov dword [esi + 4], eax
test eax, eax
je 0x485a08
mov edi, 0x104
push edi
add eax, 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4859f0
call fcn.00405ac9
test al, al
je 0x48570b
mov dword [ebp - 0x228], str.360elam64.sys
mov dword [ebp - 0x220], str.360elam64
jmp 0x48571f
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.0042a4a0
test eax, eax
jl 0x4859f0
mov eax, dword [esi + 4]
mov ebx, 0x208
push str.drivers_
add eax, ebx
push eax
call fcn.00428d32
test eax, eax
jl 0x4859f0
mov eax, dword [esi + 4]
push dword [ebp - 0x228]
add eax, ebx
push eax
call fcn.00428d32
test eax, eax
jl 0x4859f0
push str.softmgr_
lea eax, [ebp - 0x21c]
push eax
call fcn.004056ee
push dword [ebp - 0x228]
and dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
call fcn.00404758
lea eax, [ebp - 0x22c]
call fcn.004059e3
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x230]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004299e0
mov edx, dword [esi + 4]
pop ecx
pop ecx
push dword [eax]
add edx, 0x410
push edi
call fcn.0042a4a0
mov ebx, eax
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.00405521
test ebx, ebx
jl 0x4859e2
push dword [ebp - 0x220]
mov edx, dword [esi + 4]
push edi
call fcn.0042a4a0
test eax, eax
jl 0x4859e2
mov edx, dword [esi + 4]
push str.360elam_driver
push edi
add edx, 0x618
call fcn.0042a4a0
test eax, eax
jl 0x4859e2
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 0x4859e2
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004f18b0
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 0x4859d6
mov eax, dword [ebp - 0x234]
add eax, 2
push eax
call fcn.004f4fb6
pop ecx
mov dword [ebp - 0x220], eax
test eax, eax
je 0x4859d6
mov ecx, dword [ebp - 0x234]
add ecx, 2
push ecx
push 0
push eax
call fcn.004f18b0
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 0x48592d
push dword [ebp - 0x220]
lea edx, [ebp - 0x218]
push edi
mov dword [ebp - 0x22c], ebx
call fcn.0042a4a0
mov dword [ebp - 0x230], eax
push dword [ebp - 0x220]
call fcn.004f29a6
cmp dword [ebp - 0x22c], 0
pop ecx
je 0x4859d6
cmp dword [ebp - 0x230], 0
jne 0x4859d6
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5481d0
lea eax, [ebp - 0x218]
push eax
call fcn.00428d32
test eax, eax
jl 0x4859e2
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push eax
call fcn.00428d32
test eax, eax
jl 0x4859e2
mov edx, dword [esi + 4]
lea eax, [ebp - 0x218]
push eax
push edi
add edx, 0xa28
call fcn.0042a4a0
test eax, eax
jl 0x4859e2
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.00405521
jmp 0x485a02
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [esi + 4]
test eax, eax
je 0x485a02
push eax
call fcn.004f1890
and dword [esi + 4], 0
pop ecx
mov eax, dword [ebp - 0x238]
call fcn.004fc7ba
ret