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

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [eax]
mov dword [edx], 0xffffffff
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x48]
mov dword [esp + 4], edx
mov dword [esp], ebp
call dword [eax + 0x4c]
sub esp, 8
test eax, eax
mov ebx, eax
js 0x703a073f
mov eax, dword [esp + 0x48]
mov dword [esp + 4], 0x703e070c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
mov esi, dword [sym.imp.oleaut32.dll_SysFreeString]
test eax, eax
jne 0x703a072a
mov eax, dword [ebp]
lea edx, [esp + 0x54]
mov dword [esp], ebp
mov dword [esp + 4], edx
call dword [eax + 0x3c]
sub esp, 8
test eax, eax
mov ebx, eax
js 0x703a0890
mov esi, dword [esp + 0x54]
cmp word [esi], 0x2f
je 0x703a0840
mov dword [esp + 4], 0x3a
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x703a0718
sub eax, esi
mov edx, eax
sar edx, 1
add edx, 1
cmp edx, 0x13
ja 0x703a0718
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], ecx
lea ecx, [eax + 2]
cmp ecx, 4
jae 0x703a0870
test ecx, ecx
je 0x703a06dd
movzx eax, byte [esi]
mov byte [esp + 0x58], al
test cl, 2
jne 0x703a0b7f
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov word [esp + edx*2 + 0x58], cx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
sub esp, 4
cmp eax, 4
je 0x703a0a20
ja 0x703a09d0
cmp eax, 1
jbe 0x703a0718
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [eax], 0
lea esi, [esi]
mov eax, dword [esp + 0x54]
mov esi, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x2c]
cmp dword [eax], 0xffffffff
je 0x703a0750
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call esi
sub esp, 4
add esp, 0x8c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp]
lea edi, [esp + 0x58]
mov dword [esp], ebp
mov dword [esp + 0x30], edi
mov dword [esp + 4], edi
call dword [eax + 0x60]
sub esp, 8
test eax, eax
mov ebx, eax
js 0x703a0733
mov edx, dword [esp + 0x58]
test edx, edx
je 0x703a08a8
mov eax, dword [ebp]
lea edx, [esp + 0x4c]
mov dword [esp], ebp
mov dword [esp + 4], edx
call dword [eax + 0x34]
sub esp, 8
test eax, eax
mov ebx, eax
js 0x703a0733
mov eax, dword [esp + 0x58]
lea edx, [eax - 1]
cmp edx, 0x11
ja 0x703a07bd
cmp eax, 9
je 0x703a07bd
mov edx, 0x40bce
bt edx, eax
jae 0x703a07bd
mov eax, dword [esp + 0x4c]
cmp word [eax], 0
je 0x703a0b02
mov eax, dword [ebp]
lea edx, [esp + 0x50]
mov dword [esp], ebp
mov dword [esp + 4], edx
call dword [eax + 0x4c]
sub esp, 8
test eax, eax
mov ebx, eax
js 0x703a0a31
lea edi, [esp + 0x54]
mov ebp, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains
mov dword [esp + 8], edi
mov dword [esp], ParseURLW
call ebp
sub esp, 0xc
test eax, eax
je 0x703a0a42
test byte [0x703d83b0], 4
jne 0x703a0a85
cmp ebx, 1
je 0x703a0abc
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x703a0733
movzx eax, word [esi + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_iswalpha]
test eax, eax
je 0x703a0692
cmp word [esi + 4], 0x3a
jne 0x703a0692
add esi, 2
jmp 0x703a0692
mov edi, dword [esi + ecx - 4]
mov dword [esp + ecx + 0x54], edi
lea ecx, [eax + 1]
mov edi, dword [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x703a06dd
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
jmp 0x703a073f
mov ebp, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov eax, dword [esp + 0x48]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapProtocolDefaults
mov dword [esp], ParseURLW
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call ebp
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x703a0bc5
lea eax, [esp + 0x54]
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x54], 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call edi
mov ecx, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0x18
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
call ecx
sub esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x703a0733
mov eax, dword [esp + 0x30]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapProtocolDefaults
mov dword [esp], reloc.shlwapi.dll_ParseURLW
mov dword [esp + 8], eax
call ebp
sub esp, 0xc
test eax, eax
jne 0x703a0bc5
lea eax, [esp + 0x54]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x54], 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call edi
sub esp, 0x18
mov edi, eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call eax
sub esp, 4
test edi, edi
je 0x703a0733
mov dword [ebp], 3
jmp 0x703a0733
lea edx, [eax - 5]
cmp edx, 1
jbe 0x703a0708
test byte [0x703d83b0], 1
je 0x703a0718
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], 0x703d83b0
mov dword [esp], 0
call fcn.7039dc50
jmp 0x703a0718
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [eax], 3
jmp 0x703a0718
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x703a0733
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysStringLen]
sub esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x4c]
call fcn.7039ffb0
mov ebx, eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x703a0812
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains
call fcn.7039d9b0
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], 0x703d83b0
mov dword [esp], 2
call fcn.7039dc50
jmp 0x703a0812
mov dword [esp + 8], edi
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains
mov dword [esp], reloc.shlwapi.dll_ParseURLW
call ebp
sub esp, 0xc
test eax, eax
je 0x703a0b1b
test byte [0x703d83b0], 4
jne 0x703a0b8e
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x703a08ae
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
mov dword [ecx], 0xffffffff
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x703a0733
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysStringLen]
sub esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x4c]
call fcn.7039ffb0
mov ebx, eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call esi
sub esp, 4
cmp ebx, 1
jne 0x703a0733
jmp 0x703a08ae
movzx eax, word [esi + ecx - 2]
mov word [esp + ecx + 0x56], ax
jmp 0x703a06dd
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains
call fcn.7039d9b0
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], 0x703d83b0
mov dword [esp], 2
call fcn.7039dc50
jmp 0x703a0ae5
test byte [0x703d83b0], 2
jne 0x703a0bd8
mov ebx, 0x8000ffff
jmp 0x703a0733
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapProtocolDefaults
call fcn.7039d9b0
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], 0x703d83b0
mov dword [esp], 1
call fcn.7039dc50
jmp 0x703a0bce