Function at 0x4181ce
Capabilities:
Check if file exists
Create directory
Delete file
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1044]
mov eax, 0x1044
call fcn.004337b0
push 0xffffffffffffffff
push 0x43e2dc
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44d08c]
xor eax, ebp
mov dword [ebp + 0x1040], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0040a42f
test eax, eax
je 0x418631
mov esi, 0x4425b8
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.00409ada
push esi
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00409ada
push esi
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00409ada
xor eax, eax
mov esi, 0x206
mov byte [ebp - 4], 2
push esi
mov word [ebp + 0xe38], ax
lea eax, [ebp + 0xe3a]
push edi
push eax
call fcn.004253c0
xor eax, eax
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], 0x208
call fcn.004253c0
push dword [ebx + 4]
lea eax, [ebp - 0x14]
push eax
push 0x4450c0
mov esi, str.links
push esi
call fcn.0040a4bb
push dword [ebx + 4]
lea eax, [ebp - 0x10]
push eax
push str.lver
push esi
call fcn.0040a4bb
push dword [ebx + 4]
lea eax, [ebp - 0x18]
push eax
push 0x4450e4
push esi
call fcn.0040a4bb
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add esp, 0x48
cmp dword [eax - 0xc], edi
je 0x418613
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x418613
cmp dword [ecx - 0xc], edi
je 0x418613
call fcn.0040ac57
test eax, eax
jne 0x4182fb
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
jmp 0x418616
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0xe38]
push eax
lea eax, [ebp - 0x20]
push eax
push str.links.dll
push str.Software360safeUpdate
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp + 0xe38]
push eax
push dword [ebp - 0x10]
call fcn.00426398
pop ecx
pop ecx
test eax, eax
jle 0x4182f0
xor eax, eax
push 0x40e
mov word [ebp + 0xa28], ax
lea eax, [ebp + 0xa2a]
push edi
push eax
call fcn.004253c0
xor eax, eax
push 0x40e
mov word [ebp + 0x618], ax
lea eax, [ebp + 0x61a]
push edi
push eax
call fcn.004253c0
lea eax, [ebp + 0xa28]
push eax
mov eax, esi
call fcn.0040a54b
lea eax, [ebp + 0xa28]
push eax
call fcn.0040a7ad
add esp, 0x20
test al, al
jne 0x418399
push edi
lea eax, [ebp + 0xa28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.linksdll.cab
mov eax, 0x410
lea ecx, [ebp + 0xa28]
call fcn.00414e5b
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0xa28]
push eax
call esi
lea eax, [ebp + 0x618]
push eax
mov eax, str.linkslinks.dll
call fcn.0040a54b
lea eax, [ebp + 0x618]
push eax
call fcn.0040a78b
pop ecx
pop ecx
test al, al
je 0x4183e9
lea eax, [ebp + 0x618]
push eax
call esi
mov esi, dword [ebp - 0x18]
call fcn.00405a09
mov eax, dword [eax + 0xe8]
cmp eax, edi
je 0x41840f
push 0x1388
lea ecx, [ebp + 0xa28]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x418411
xor eax, eax
cmp eax, edi
je 0x4182f0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp + 0xa28]
push eax
mov dword [ebp - 0x1c], edi
call esi
test eax, eax
je 0x418500
xor eax, eax
push 0x40e
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push edi
push eax
call fcn.004253c0
add esp, 0xc
lea eax, [ebp + 0x208]
push eax
lea edx, [ebp + 0x618]
mov eax, 0x410
call fcn.0040570c
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x4184f1
lea eax, [ebp + 0x208]
push eax
call esi
test eax, eax
je 0x4184f1
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4184f1
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
lea eax, [ebp + 0x208]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0xa28]
mov dword [ebp - 0x28], str.links.dll
test eax, eax
je 0x4184d5
lea eax, [ebp - 0x2c]
test eax, eax
je 0x4184d5
push eax
push 0x40561a
push 0
lea eax, [ebp + 0xa28]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
jmp 0x4184d7
xor eax, eax
test eax, eax
je 0x4184ef
lea eax, [ebp + 0x618]
push eax
call esi
test eax, eax
je 0x4184ef
mov dword [ebp - 0x1c], 1
xor edi, edi
push dword [ebp - 0x10]
push str.Software360safeUpdate
call fcn.0040ad03
pop ecx
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0xa28]
push eax
call esi
cmp dword [ebp - 0x1c], edi
je 0x4182f0
lea eax, [ebp + 0x618]
push eax
call fcn.00414ae3
test eax, eax
pop ecx
lea eax, [ebp + 0x618]
push eax
jne 0x41855a
call esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004054cf
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004054cf
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004054cf
mov eax, edi
jmp 0x418633
add ebx, 8
push ebx
call fcn.004031c2
mov eax, dword [0x451a2c]
mov ecx, 0x451a2c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x618]
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0040a609
pop ecx
test eax, eax
je 0x418603
mov esi, 0x208
push esi
lea eax, [ebp + 0xe38]
push edi
push eax
call fcn.004253c0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0xe38]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], esi
push str.links.dll
mov esi, str.SOFTWARE360Safe_safemon
xor ebx, ebx
push esi
inc ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp]
push eax
lea eax, [ebp + 0xe38]
push eax
call fcn.00426398
pop ecx
pop ecx
test eax, eax
je 0x418603
mov edi, dword [ebp - 0x1c]
push edi
push esi
call fcn.0040ad03
pop ecx
pop ecx
lea eax, [edi - 0x10]
call fcn.004054cf
mov edi, ebx
jmp 0x418532
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004054cf
jmp 0x4182f0
lea eax, [ecx - 0x10]
call fcn.004054cf
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004054cf
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004054cf
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1040]
xor ecx, ebp
call fcn.00425271
add ebp, 0x1044
leave
ret