Function at 0x409290
Capabilities:
Check if file exists
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xd5c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0xd54], eax
xor eax, eax
push 0x21a
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.004416b0
add esp, 0xc
xor edx, edx
push 0x21a
push edx
lea eax, [esp + 0x23a]
push eax
mov word [esp + 0x23c], dx
call fcn.004416b0
add esp, 0xc
xor ecx, ecx
push 0x2ce
push ecx
lea edx, [esp + 0x45a]
push edx
mov word [esp + 0x45c], cx
call fcn.004416b0
add esp, 0xc
push 0x104
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0x21c
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._bit4upki_store.dll
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.0043f083
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push str.szBit4idDll___ws_n
call fcn.00404c20
add esp, 8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40950e
lea ecx, [esp + 0x10]
push ecx
push str._RUNDLL32.EXE____s__RunImportServer
lea edx, [esp + 0x458]
push 0x168
push edx
call fcn.0043ed50
add esp, 0x10
call fcn.00407be0
test eax, eax
je 0x40959c
lea eax, [esp + 8]
push eax
push 0x2011f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40942d
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push str.bit4id_csp_store_register__M_x64_
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x409422
lea eax, [esp + 0x450]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4093e0
mov ecx, dword [esp + 8]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x454]
push eax
push 1
push 0
push str.bit4id_csp_store_register__M_x64_
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x409422
push eax
push str.SHSetValue_bit4id_csp_store_register__M__fail__d_n
call fcn.00404c20
add esp, 8
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x94a]
push ecx
mov word [esp + 0x94c], ax
call fcn.004416b0
add esp, 0xc
xor edx, edx
push 0x21a
push edx
lea eax, [esp + 0x72a]
push eax
mov word [esp + 0x72c], dx
call fcn.004416b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x724]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.SysWOW64RUNDLL32.EXE
lea edx, [esp + 0x724]
push 0x10e
push edx
call fcn.0043f083
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x724]
push ecx
push str.__s____s__RunImportServer
lea edx, [esp + 0x94c]
push 0x208
push edx
call fcn.0043ed50
add esp, 0x14
lea eax, [esp + 0x940]
push eax
push str.szBit4Data32___ws_n
call fcn.00404c20
add esp, 8
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0xc]
push eax
push str.bit4id_csp_store_register__M_
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x409528
push str._SHGetValue_Key_bit4id_csp_store_register__M__exist_n
call fcn.00404c20
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xd54]
xor ecx, esp
call fcn.0043e4c7
add esp, 0xd5c
ret
lea eax, [esp + 0x940]
mov dword [esp + 4], 1
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409540
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x944]
push edx
push 1
push str.bit4id_csp_store_register__M_
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
je 0x40950e
push eax
push str.SHSetValue_bit4id_csp_store_register__M__fail__d_n
call fcn.00404c20
mov ecx, dword [esp + 0xd5c]
add esp, 8
xor ecx, esp
xor eax, eax
call fcn.0043e4c7
add esp, 0xd5c
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0xc]
push edx
push str.bit4id_csp_store_register__M_
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4095d1
push str._SHGetValue_Key_bit4id_csp_store_register__M__fail_n
jmp 0x409506
lea eax, [esp + 0x450]
mov dword [esp + 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4095e3
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x454]
push ecx
jmp 0x40955c