Function at 0x100019d0
Capabilities:
Check os version
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1000980c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
mov eax, dword [esp + 0xe4]
push ebx
push ebp
mov ebp, 4
mov ebx, ecx
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x2c], ebx
jne 0x10001a12
cmp dword [esp + 0xf8], ebp
je 0x10001f0e
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x48], 0x9c
mov dword [esp + 0x4c], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
push eax
call esi
test eax, eax
jne 0x10001a4f
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], 0x94
push ecx
call esi
cmp dword [esp + 0x4c], 5
jne 0x10001f0e
cmp dword [esp + 0x50], 1
jbe 0x10001f0e
push 0x1000c1f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x44], edi
xor esi, esi
cmp edi, esi
mov dword [esp + 0xec], esi
jne 0x10001ac4
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1000c158
push esi
call fcn.100014b0
add esp, 0xc
xor eax, eax
jmp 0x10001f13
push 0x1000c2a0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [esp + 0x28], eax
jne 0x10001b1c
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1000c158
push esi
call fcn.100014b0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x10001f13
mov eax, dword [esp + 0xf4]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
je 0x10001c62
mov dword [esp + 0x10], esi
lea edx, [esp + 0x10]
mov byte [esp + 0xec], 1
push edx
push 3
push esi
push 0x1000c27c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x10001b90
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x114
call edi
push eax
push 0x1000c158
push esi
call fcn.100014b0
add esp, 0xc
jmp 0x10001c53
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x14]
lea ebp, [ebx + 0x110]
push eax
lea ecx, [esp + 0x1c]
push ebp
push ecx
push 0
push 0x1000c274
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10001bf4
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x11d
call edi
push eax
push 0x1000c158
push esi
call fcn.100014b0
add esp, 0xc
mov dword [ebp], 1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xf4]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push 0
push 0x1000c274
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10001c4e
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x125
call edi
push eax
push 0x1000c158
push esi
call fcn.100014b0
add esp, 0xc
mov ebp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10001c62
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xf8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebp
je 0x10001df5
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 3
push 1
push 0
push 0
push 0x1000c27c
push 0x80000002
mov byte [esp + 0x110], 2
call ebx
test eax, eax
je 0x10001cfe
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x139
call edi
push eax
push 0x1000c158
push esi
call fcn.100014b0
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x10001cec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x10001f13
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ebp
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
lea ebp, [ecx + 0x114]
mov ecx, dword [esp + 0x10]
push edx
push ebp
push eax
push 0
push 0x1000c274
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10001d66
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x142
call edi
push eax
push 0x1000c158
push esi
call fcn.100014b0
add esp, 0xc
mov dword [ebp], 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xf8]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push 0
push 0x1000c274
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10001de1
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x14a
call edi
push eax
push 0x1000c158
push esi
call fcn.100014b0
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x10001dcf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x10001f13
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10001df0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 4
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x30]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push 1
push 1
push 0
push 0
push 0x1000c264
push 0x80000002
mov byte [esp + 0x110], 3
call ebx
test eax, eax
je 0x10001e7c
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x161
call edi
push eax
push 0x1000c158
push esi
call fcn.100014b0
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x10001e6a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x10001f13
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0x1000c25c
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001f2e
cmp dword [esp + 0x14], ebp
jne 0x10001f2e
cmp dword [esp + 0x18], ebp
jne 0x10001f2e
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xf4]
cmp eax, ecx
ja 0x10001ec9
mov eax, ecx
mov dx, word [esp + 0x26]
and al, 3
shl al, 2
mov byte [esp + 0x43], al
mov ax, word [esp + 0x24]
lea ecx, [esp + 0x34]
mov byte [esp + 0x38], 4
push ecx
mov word [esp + 0x38], dx
mov word [esp + 0x42], ax
call dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10001f03
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe0
ret 8
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x16a
call edi
push eax
push 0x1000c158
push esi
call fcn.100014b0
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x10001f6f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x10001f13