Function at 0x10021aa0
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x64
mov dword [edx], 0xffffffff
mov eax, dword [eax]
lea edx, [ebp - 0x44]
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [eax + 0x4c]
sub esp, 8
mov ebx, eax
test eax, eax
js 0x10021b02
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], 0x1005e8fa
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x10021b10
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
cmp dword [edi], 0xffffffff
mov dword [ebp - 0x48], eax
je 0x10021bcc
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi]
lea edx, [ebp - 0x38]
mov dword [esp], esi
mov dword [esp + 4], edx
call dword [eax + 0x3c]
sub esp, 8
mov ebx, eax
test eax, eax
js 0x10021d58
mov ecx, dword [ebp - 0x38]
cmp word [ecx], 0x2f
je 0x10021cc0
mov dword [esp + 4], 0x3a
mov dword [esp], ecx
mov dword [ebp - 0x48], ecx
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x10021bb0
mov ecx, dword [ebp - 0x48]
sub eax, ecx
mov edx, eax
sar edx, 1
add edx, 1
cmp edx, 0x13
ja 0x10021bb0
add eax, 2
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
lea eax, [ebp - 0x34]
mov dword [esp], eax
mov dword [ebp - 0x48], edx
call sym._memcpy
mov edx, dword [ebp - 0x48]
xor ecx, ecx
lea eax, [ebp - 0x34]
mov dword [esp], eax
mov word [ebp + edx*2 - 0x34], cx
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
sub esp, 4
cmp eax, 4
je 0x10021d48
ja 0x10021cf0
cmp eax, 1
ja 0x10021d38
lea esi, [esi]
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x48], eax
call eax
sub esp, 4
cmp dword [edi], 0xffffffff
jne 0x10021af4
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
mov dword [esp], esi
mov dword [esp + 4], ecx
call dword [eax + 0x60]
sub esp, 8
mov ebx, eax
test eax, eax
js 0x10021af4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10021d70
mov eax, dword [esi]
lea edx, [ebp - 0x40]
mov dword [esp], esi
mov dword [esp + 4], edx
call dword [eax + 0x34]
sub esp, 8
mov ebx, eax
test eax, eax
js 0x10021af4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10021c40
cmp eax, 9
je 0x10021c40
cmp eax, 0x12
ja 0x10021c40
mov edx, 0x40bce
bt edx, eax
jae 0x10021c40
mov eax, dword [ebp - 0x40]
cmp word [eax], 0
je 0x10021fb0
mov esi, esi
lea edi, [edi]
mov eax, dword [esi]
lea edx, [ebp - 0x3c]
mov dword [esp], esi
mov dword [esp + 4], edx
call dword [eax + 0x4c]
sub esp, 8
mov ebx, eax
test eax, eax
js 0x10021e7f
lea eax, [ebp - 0x38]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 8], eax
mov dword [esp], ParseURLW
call esi
sub esp, 0xc
test eax, eax
je 0x10021e92
test byte [0x100563b0], 4
jne 0x10021ecc
cmp ebx, 1
je 0x10021f03
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x48]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x3c]
sub esp, 4
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x10021af4
movzx eax, word [ecx + 2]
mov dword [ebp - 0x48], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_iswalpha]
mov ecx, dword [ebp - 0x48]
test eax, eax
je 0x10021b39
cmp word [ecx + 4], 0x3a
jne 0x10021b39
add ecx, 2
jmp 0x10021b39
lea edx, [eax - 5]
cmp edx, 1
jbe 0x10021d38
test byte [0x100563b0], 1
je 0x10021bb0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unsupported_drive_type__d_n
mov dword [esp + 8], str.map_security_uri_to_zone
mov dword [esp + 4], 0x100563b0
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_14
jmp 0x10021bb0
mov dword [edi], 0
xor ebx, ebx
jmp 0x10021bb0
mov dword [edi], 3
xor ebx, ebx
jmp 0x10021bb0
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
jmp 0x10021b02
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapProtocolDefaults
mov dword [esp], ParseURLW
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x34]
mov dword [esp + 8], eax
call esi
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x10021fff
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x10], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 8], 0
mov dword [ebp - 0x54], eax
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
sub esp, 0x18
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x58], eax
call eax
mov edx, dword [ebp - 0x50]
sub esp, 4
test edx, edx
je 0x10021af4
lea eax, [ebp - 0x34]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapProtocolDefaults
mov dword [esp + 8], eax
mov dword [esp], reloc.shlwapi.dll_ParseURLW
call esi
sub esp, 0xc
test eax, eax
jne 0x10021fff
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x10], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], 0
call eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x34]
sub esp, 0x18
mov dword [esp], eax
mov eax, dword [ebp - 0x58]
call eax
mov edx, dword [ebp - 0x4c]
sub esp, 4
test edx, edx
je 0x10021af4
mov dword [edi], 3
jmp 0x10021af4
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
sub esp, 4
jmp 0x10021af4
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysStringLen]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], edi
call sym._search_for_domain_mapping
mov ebx, eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x10021c92
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains
call sym._wine_dbgstr_wn.constprop.0_12
mov dword [esp + 0xc], str.Failed_to_open_HKCUs__s_key_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_zone_from_domains
mov dword [esp + 4], 0x100563b0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_14
jmp 0x10021c92
lea eax, [ebp - 0x38]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains
mov dword [esp + 8], eax
mov dword [esp], reloc.shlwapi.dll_ParseURLW
call esi
sub esp, 0xc
test eax, eax
je 0x10021f4d
test byte [0x100563b0], 4
jne 0x10021fc8
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x48]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x3c]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x10021d76
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysStringLen]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], edi
call sym._search_for_domain_mapping
mov ebx, eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x40]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
mov eax, dword [ebp - 0x3c]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
sub esp, 4
cmp ebx, 1
je 0x10021d76
jmp 0x10021af4
mov dword [edi], 0xffffffff
xor ebx, ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
sub esp, 4
jmp 0x10021af4
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains
call sym._wine_dbgstr_wn.constprop.0_12
mov dword [esp + 0xc], str.Failed_to_open_HKLMs__s_key_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_zone_from_domains
mov dword [esp + 4], 0x100563b0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_14
jmp 0x10021f2f
test byte [0x100563b0], 2
jne 0x10022012
mov ebx, 0x8000ffff
jmp 0x10021af4
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapProtocolDefaults
call sym._wine_dbgstr_wn.constprop.0_12
mov dword [esp + 0xc], str.Could_not_open_key__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_zone_from_reg
mov dword [esp + 4], 0x100563b0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_14
jmp 0x10022008