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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x656310
push 0x5a02b0
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x660124]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.0059e610
add esp, 0xc
mov dword [ebp - 0x228], 0x206
mov dword [ebp - 0x22c], 0
xor bl, bl
mov dword [ebp - 4], 0
lea eax, [ebp - 0x22c]
push eax
push 1
push 0
push str.SOFTWARElamyu97712016
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f137
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push str.path
push dword [ebp - 0x22c]
call esi
test eax, eax
jne 0x41f12b
mov ecx, edi
call fcn.00416470
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x41f12b
mov eax, dword [ebp - 0x228]
test eax, eax
jle 0x41f12b
cmp eax, 0x208
jae 0x41f12b
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f12b
lea eax, [ebp - 0x224]
push eax
mov ecx, edi
call fcn.00416670
mov bl, 1
mov byte [ebp - 0x22d], bl
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x41f282
lea eax, [ebp - 0x22c]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f282
push 0x208
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0059e610
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push str.InstallLocation
push dword [ebp - 0x22c]
call esi
test eax, eax
jne 0x41f276
mov ecx, edi
call fcn.00416470
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x41f276
mov eax, dword [ebp - 0x228]
test eax, eax
jle 0x41f276
cmp eax, 0x208
jae 0x41f276
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f276
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f1f2
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0xb]
cmp eax, 0x104
jae 0x41f276
lea edx, [ebp - 0x224]
add edx, 0xfffffffe
mov ax, word [edx + 2]
lea edx, [edx + 2]
test ax, ax
jne 0x41f214
mov eax, dword [str.xunyou.exe]
mov dword [edx], eax
mov eax, dword [0x64fdd0]
mov dword [edx + 4], eax
mov eax, dword [0x64fdd4]
mov dword [edx + 8], eax
mov eax, dword [0x64fdd8]
mov dword [edx + 0xc], eax
mov eax, dword [0x64fddc]
mov dword [edx + 0x10], eax
mov eax, dword [0x64fde0]
mov dword [edx + 0x14], eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f276
lea eax, [ebp - 0x224]
push eax
mov ecx, edi
call fcn.00416670
mov bl, 1
mov byte [ebp - 0x22d], bl
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xfffffffe
mov al, bl
jmp 0x41f29f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005846b2
mov esp, ebp
pop ebp
ret