Function at 0x421270
Capabilities:
Check os version
Create process on windows
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4519ec
mov eax, dword fs:[0]
push eax
mov eax, 0x1098
call fcn.00439740
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x1094], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x10ac]
mov dword fs:[0], eax
mov esi, ecx
push esi
call fcn.00422380
test eax, eax
jne 0x4217d4
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor edi, edi
mov dword [esp + 0x10b4], edi
cmp esi, edi
je 0x4212f8
mov eax, esi
lea edx, [eax + 1]
jmp 0x4212e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4212e0
lea ecx, [esp + 0x70]
push ecx
sub eax, edx
push eax
push esi
call fcn.0043ef6f
add esp, 0xc
push 0x7fe
lea eax, [esp + 0xae]
xor edx, edx
push edi
push eax
mov word [esp + 0xb4], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ecx, al
shr eax, 8
movzx eax, al
cmp ecx, 6
jne 0x42148a
cmp eax, 1
jne 0x42148a
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push getpeername
call ebp
test eax, eax
jne 0x42148a
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x8b2]
push eax
mov word [esp + 0x8b4], dx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x8ac]
push edx
push 0
push 0
push str.Progid
push eax
mov dword [esp + 0x30], 0x400
call edi
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call ebx
test esi, esi
jne 0x42148a
cmp dword [esp + 0x18], esi
je 0x4214dd
lea edx, [esp + 0x8a8]
push edx
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str._shellopencommand
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x10c0], 1
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0xc
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x10b8], 2
call dword [0x454368]
lea ecx, [esp + 0x38]
mov byte [esp + 0x10b4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x421431
lea eax, [esp + 0x58]
lea edx, [esp + 0x14]
push edx
push 1
push 0
push eax
push closesocket
call ebp
mov esi, eax
test esi, esi
jne 0x421474
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xac]
push ecx
push esi
push esi
push 0x459ee4
push edx
mov dword [esp + 0x30], 0x400
call edi
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0x10b4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test esi, esi
je 0x4214dd
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push str.http_shellopencommand
push closesocket
call ebp
test eax, eax
jne 0x4216d8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xac]
push eax
push 0
push 0
push 0x459ee4
push ecx
mov dword [esp + 0x30], 0x400
call edi
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call ebx
test esi, esi
jne 0x4216d8
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x54]
mov byte [esp + 0x10b4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov bl, 4
mov byte [esp + 0x10b4], bl
cmp dword [esp + 0x4c], 0
je 0x4216ad
push 0
push 0x22
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [ecx], eax
je 0x421565
mov ecx, dword [ecx]
push ecx
inc eax
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x10b8], 5
call dword [0x454368]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10b4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0
push 0x22
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t__unsigned_int_const]
mov esi, eax
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [eax], esi
je 0x4215ee
mov eax, dword [eax]
push eax
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x10b8], 6
call dword [0x454368]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10b4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push esi
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x10b8], 7
call dword [0x454368]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10b4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0
push 0x45c8ac
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [ecx], eax
je 0x42162f
mov ecx, dword [esp + 0x74]
mov esi, 8
cmp dword [esp + 0x88], esi
jae 0x42161f
lea ecx, [esp + 0x74]
push ecx
push 2
push eax
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::replace_unsigned_int__unsigned_int__wchar_t_const__]
jmp 0x421643
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x58]
call dword [0x454368]
mov esi, 8
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], esi
jae 0x421651
lea eax, [esp + 0x3c]
push eax
call fcn.004403a9
add esp, 4
test al, al
je 0x4216b2
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x6c], esi
jae 0x42166c
lea ecx, [esp + 0x58]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], esi
jae 0x42167a
lea eax, [esp + 0x3c]
push 1
push 0
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4216b2
lea ecx, [esp + 0x54]
mov byte [esp + 0x10b4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x38]
jmp 0x4217e2
mov esi, 8
lea ecx, [esp + 0x54]
mov byte [esp + 0x10b4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x38]
mov byte [esp + 0x10b4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x4216dd
mov esi, 8
push 0x45c8b4
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x10b4], 8
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], esi
jae 0x421708
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x90]
call dword [0x454360]
push 0x45c8b4
lea ecx, [esp + 0x90]
call dword [0x454360]
push 0x800
lea eax, [esp + 0xac]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0x26
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4217db
push 0x40
lea edx, [esp + 0xac]
push 0x45c8b8
push edx
call dword [sym.imp.MSVCR90.dll_wcsncat]
mov eax, dword [esp + 0x9c]
add esp, 0xc
cmp dword [esp + 0xa4], esi
jae 0x42178b
lea eax, [esp + 0x90]
push 1
push 0
push eax
lea eax, [esp + 0xb4]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4217db
lea ecx, [esp + 0x8c]
mov byte [esp + 0x10b4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x70]
mov dword [esp + 0x10b4], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x421807
lea ecx, [esp + 0x8c]
mov byte [esp + 0x10b4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x70]
mov dword [esp + 0x10b4], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x10ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1094]
xor ecx, esp
call fcn.004390e8
add esp, 0x10a4
ret