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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
push esi
push edi
mov edi, ecx
lea edx, [ebp + 8]
push str.WindowsSystem32configSOFTWARE
lea ecx, [ebp - 0x2c]
call fcn.0043baed
mov esi, dword [ebp - 0x2c]
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4190d8
push 0xa
pop ebx
jmp 0x4194c3
lea eax, [ebp - 0x2c]
mov edx, str.bf1a281b_ad7b_4476_ac95_f47682990ce7
push eax
lea ecx, [ebp - 0x24]
call fcn.00431d43
pop ecx
push 0x2f
push 0x5c
pop eax
push eax
lea ecx, [ebp - 0x24]
call fcn.0043ca57
push esi
push dword [ebp - 0x24]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov ebx, eax
test ebx, ebx
jne 0x4194b8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0x2001f
push dword [0x4ad198]
push str.MountedDevices
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4194b0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x5c], 0x4951dc
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x84]
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x38], eax
call fcn.0043ba54
lea ecx, [ebp - 0x5c]
call fcn.0043ba36
call fcn.0043d5bb
push eax
lea ecx, [ebp - 8]
call fcn.0043bbe8
push str.MicrosoftWindows_NTCurrentVersion
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0043baed
lea ecx, [ebp - 8]
push ecx
push str.SystemRoot
mov edx, dword [eax]
mov ecx, 0x80000002
call fcn.0044defb
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov esi, dword [ebp - 8]
test edi, edi
je 0x4191af
mov ebx, edi
jmp 0x41949a
cmp dword [esi - 0xc], 4
jl 0x419497
movzx eax, word [esi]
push 0x5a
pop ecx
push 0x41
pop edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
cmp ax, dx
jb 0x4191d2
cmp ax, cx
jbe 0x4191e4
cmp eax, 0x61
jb 0x419497
cmp eax, 0x7a
ja 0x419497
push 0x3a
pop ecx
cmp word [esi + 2], cx
jne 0x419497
push 0x5c
pop ecx
cmp word [esi + 4], cx
jne 0x419497
cmp eax, 0x78
je 0x41949a
mov edi, dword [ebp + 8]
push 0x19
pop edx
movzx eax, word [edi]
cmp ax, word [ebp - 0x14]
jb 0x41921c
cmp ax, word [ebp - 0x10]
jbe 0x419228
add eax, 0xffffff9f
cmp ax, dx
ja 0x419497
push 0x3a
pop eax
cmp word [edi + 2], ax
jne 0x419497
cmp word [edi + 4], cx
jne 0x419497
call fcn.0043d5bb
push eax
lea ecx, [ebp - 8]
call fcn.0043bbe8
movzx eax, word [edi]
lea ecx, [ebp - 0x20]
push 0x49a7ac
push eax
push str.DosDevices_
call fcn.0043c2b8
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.00431d08
pop ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.0043baed
lea edx, [ebp - 8]
mov ecx, 0x80000002
push edx
lea edx, [ebp - 0x30]
push edx
push dword [eax]
mov edx, str.SYSTEMMountedDevices
call fcn.0044dfdf
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0043d912
test edi, edi
mov edi, dword [ebp - 8]
jne 0x41948a
cmp dword [ebp - 0x30], 3
jne 0x41948a
mov eax, dword [edi - 0xc]
mov dword [ebp - 0xc], eax
call fcn.0043d5bb
push eax
lea ecx, [ebp - 0x14]
call fcn.0043bbe8
push dword [ebp - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0043b9dd
mov ecx, eax
mov dword [ebp - 0x1c], 0x104
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], ecx
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ecx, ecx
inc ecx
mov dword [ebp - 8], ecx
jmp 0x4193ae
test eax, eax
mov eax, dword [ebp - 0xc]
jne 0x41937e
cmp dword [ebp - 0x1c], 0xe
jne 0x41937e
cmp dword [ebp - 0x28], eax
jne 0x41937e
cmp dword [ebp - 0x10], 3
jne 0x41937e
push 0xc
push str.DosDevices_
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x41937b
push 0x3a
pop eax
cmp word [ebp - 0x272], ax
jne 0x41937b
push dword [ebp - 0xc]
push edi
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
je 0x419441
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0x104
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 8]
cmp eax, 0x103
jne 0x419327
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [esi - 0xc], ebx
jl 0x4194df
movzx ecx, word [esi]
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x4193d6
add ecx, 0xffffffe0
push 0x49a7ac
push ecx
push str.DosDevices_
lea ecx, [ebp - 0x1c]
call fcn.0043c2b8
mov edx, eax
lea ecx, [ebp - 8]
call fcn.00431d08
pop ecx
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.0043baed
pop ecx
push dword [ebp - 0x10]
push edi
push 3
push ebx
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x20]
mov ebx, eax
add ecx, 0xfffffff0
call fcn.0043d912
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.0043d912
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0043d912
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043d912
jmp 0x41948d
cmp dword [esi - 0xc], ebx
jl 0x4194df
movzx edx, word [esi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x419458
add edx, 0x20
movzx ecx, word [ebp - 0x274]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x41946a
add ecx, 0x20
cmp edx, ecx
je 0x419434
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4193b9
mov ebx, eax
jmp 0x419434
push 0xa
pop ebx
lea ecx, [edi - 0x10]
call fcn.0043d912
jmp 0x41949a
push 0xa
pop ebx
lea ecx, [esi - 0x10]
call fcn.0043d912
lea ecx, [ebp - 0x84]
call fcn.0043ba19
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
call fcn.0043b8cb
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esi - 0x10]
call fcn.0043d912
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
push 0x80070057
call fcn.0043d861
int3