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

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4d0968]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push ebx
mov ebx, dword [ebp + 0x1b0]
push esi
mov esi, dword [ebp + 0x1ac]
push edi
mov edi, dword [ebp + 0x1a8]
push 0x206
lea eax, [ebp - 0x6a]
push 0
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x6c], 0
call fcn.00480820
add esp, 0xc
test edi, edi
mov dword [ebp - 0x70], 0
je 0x461696
test esi, esi
je 0x461696
test ebx, ebx
je 0x461696
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov dword [ebp - 0x80], 0x208
call ebx
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x4614f4
mov dword [ebp - 0x78], 0
jmp 0x46150e
lea eax, [esi + esi]
call fcn.00480be0
mov eax, esp
push 0x3a8
push esi
push edi
push eax
call fcn.004010f0
mov dword [ebp - 0x78], eax
mov edi, dword [ebp - 0x74]
push edi
call ebx
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x46152a
mov dword [ebp - 0x74], 0
jmp 0x461544
lea eax, [esi + esi]
call fcn.00480be0
mov eax, esp
push 0x3a8
push esi
push edi
push eax
call fcn.004010f0
mov dword [ebp - 0x74], eax
mov edi, dword [ebp - 0x7c]
push edi
call ebx
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x46155b
xor edi, edi
jmp 0x461574
lea eax, [esi + esi]
call fcn.00480be0
mov eax, esp
push 0x3a8
push esi
push edi
push eax
call fcn.004010f0
mov edi, eax
mov esi, dword [ebp - 0x78]
lea ecx, [ebp - 0x70]
push ecx
push 0xf003f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x461649
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x461620
lea edx, [ebp - 0x6c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4615f7
lea ecx, [ebp - 0x6c]
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4615ea
test dx, dx
je 0x4615e6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4615ea
add eax, 4
add ecx, 4
test dx, dx
jne 0x4615c4
xor eax, eax
jmp 0x4615ef
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46168f
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
push 0x104
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x461698
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
push 0x104
push edi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x461698
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x70]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x461685
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x70]
push 0x104
push edi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x461698
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
call fcn.00480bcf
add ebp, 0x1a0
mov esp, ebp
pop ebp
ret