Function at 0x1007a6d0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2458
mov eax, dword fs:[0]
push eax
mov eax, 0x1678
call fcn.100765e0
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1684], edi
mov dword [ebp - 0x1680], 0
call fcn.1000a9e0
mov ecx, eax
test ecx, ecx
je 0x1007acbc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1680], 1
test esi, esi
js 0x1007ac9e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
test esi, esi
jle 0x1007a79f
lea eax, [ebp - 0x218]
push eax
call ebx
sub esi, 1
jne 0x1007a791
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.100837f0
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [0x100dcc90]
push eax
lea eax, [ebp - 0xe48]
push eax
call esi
push 0x208
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [0x100dcc94]
push eax
lea eax, [ebp - 0x1050]
push eax
call esi
push 0x208
lea eax, [ebp - 0x1258]
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [0x100dcc98]
push eax
lea eax, [ebp - 0x1258]
push eax
call esi
push 0x208
lea eax, [ebp - 0x1460]
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [0x100dcc9c]
push eax
lea eax, [ebp - 0x1460]
push eax
call esi
push 0x208
lea eax, [ebp - 0x1668]
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [0x100dcca0]
push eax
lea eax, [ebp - 0x1668]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0xe48]
push eax
call esi
test eax, eax
je 0x1007a9ad
mov dword [ebp - 0x167c], 0
mov dword [ebp - 0x1678], 0
mov dword [ebp - 0x1674], 0
lea eax, [ebp - 0x166c]
mov dword [ebp - 4], 1
push eax
push 0x20219
push 0
push str.SOFTWARELudashi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x166c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007ac9e
mov esi, dword [ebp - 0x166c]
push 0x208
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x167c], esi
push eax
mov dword [ebp - 0x1678], 0x200
call fcn.100837f0
add esp, 0xc
mov dword [ebp - 0x166c], 0x208
lea eax, [ebp - 0x166c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x1670]
push eax
push 0
push str.VendorID
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007aace
mov eax, dword [ebp - 0x1670]
cmp eax, 1
je 0x1007a961
cmp eax, 2
jne 0x1007aace
mov eax, dword [ebp - 0x166c]
test eax, eax
je 0x1007a985
test al, 1
jne 0x1007aace
shr eax, 1
cmp word [ebp + eax*2 - 0x422], 0
je 0x1007a98e
jmp 0x1007aace
xor eax, eax
mov word [ebp - 0x420], ax
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007a997
lea eax, [ebp - 0x420]
jmp 0x1007aac1
lea eax, [ebp - 0x1050]
push eax
call esi
test eax, eax
je 0x1007aae2
mov dword [ebp - 0x167c], 0
mov dword [ebp - 0x1678], 0
mov dword [ebp - 0x1674], 0
lea eax, [ebp - 0x166c]
mov dword [ebp - 4], 2
push eax
push 0x20219
push 0
push str.SOFTWARELdsLite
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x166c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007ac9e
mov esi, dword [ebp - 0x166c]
push 0x208
push eax
lea eax, [ebp - 0x628]
mov dword [ebp - 0x167c], esi
push eax
mov dword [ebp - 0x1678], 0x200
call fcn.100837f0
add esp, 0xc
mov dword [ebp - 0x166c], 0x208
lea eax, [ebp - 0x166c]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x1670]
push eax
push 0
push str.VendorID
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007aace
mov eax, dword [ebp - 0x1670]
cmp eax, 1
je 0x1007aa7f
cmp eax, 2
jne 0x1007aace
mov eax, dword [ebp - 0x166c]
test eax, eax
je 0x1007aa9c
test al, 1
jne 0x1007aace
shr eax, 1
cmp word [ebp + eax*2 - 0x62a], 0
je 0x1007aaa5
jmp 0x1007aace
xor eax, eax
mov word [ebp - 0x628], ax
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007aab0
lea eax, [ebp - 0x628]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10009e80
test esi, esi
je 0x1007ac9e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1007ac9e
lea eax, [ebp - 0x1258]
push eax
call esi
test eax, eax
je 0x1007ab76
push 0x208
lea eax, [ebp - 0x830]
mov dword [ebp - 0x166c], 1
push 0
push eax
mov dword [ebp - 0x1670], 0x104
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x1670]
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x166c]
push eax
push 0x100bda08
push str.Software360WallPaper
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1007ac9e
lea ecx, [ebp - 0x830]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007ab60
lea eax, [ebp - 0x830]
jmp 0x1007ac91
lea eax, [ebp - 0x1460]
push eax
call esi
test eax, eax
je 0x1007ac06
push 0x208
lea eax, [ebp - 0xa38]
mov dword [ebp - 0x166c], 1
push 0
push eax
mov dword [ebp - 0x1670], 0x104
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x1670]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x166c]
push eax
push 0x100bda08
push str.SOFTWARELDSGameMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1007ac9e
lea ecx, [ebp - 0xa38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007abf0
lea eax, [ebp - 0xa38]
jmp 0x1007ac91
lea eax, [ebp - 0x1668]
push eax
call esi
test eax, eax
je 0x1007ac9e
push 0x208
lea eax, [ebp - 0xc40]
mov dword [ebp - 0x166c], 1
push 0
push eax
mov dword [ebp - 0x1670], 0x104
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x1670]
push eax
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x166c]
push eax
push 0x100bda08
push str.Software360Desktop
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1007ac9e
lea ecx, [ebp - 0xc40]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007ac80
lea eax, [ebp - 0xc40]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10009e80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000a7c0
int3