Function at 0x1001ed90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x90], 0
mov eax, dword [str.DosDevicesC:]
mov dword [ebp - 0x44], eax
mov ecx, dword [0x1006d994]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x1006d998]
mov dword [ebp - 0x3c], edx
mov ax, word [0x1006d99c]
mov word [ebp - 0x38], ax
mov cl, byte [0x1006d99e]
mov byte [ebp - 0x36], cl
push 0x31
push 0
lea edx, [ebp - 0x35]
push edx
call fcn.10033d10
add esp, 0xc
push 0x40
push 0
lea eax, [ebp - 0x84]
push eax
call fcn.10033d10
add esp, 0xc
mov byte [ebp - 0x85], 0
mov dword [ebp - 0xa8], 0
push str._INF__UpdateDosDriveOffset_EFI__Start
call fcn.100098e0
add esp, 4
lea ecx, [ebp - 0x90]
push ecx
push 0xf003f
push 0
push str.SYSTEMMountedDevices
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x1001f0a6
mov dword [ebp - 0x8c], 2
jmp 0x1001ee6d
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
cmp dword [ebp - 0x8c], 0x1a
jge 0x1001ef8d
mov dword [ebp - 0x94], 0x40
mov eax, dword [ebp - 0x8c]
add eax, 0x41
mov ecx, 1
imul edx, ecx, 0xc
mov byte [ebp + edx - 0x44], al
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0xa0]
push edx
push 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x1001ef61
push 0x10
mov edx, dword [ebp + 8]
push edx
mov eax, 1
shl eax, 3
lea ecx, [ebp + eax - 0x84]
push ecx
call fcn.10041f90
add esp, 0xc
test eax, eax
jne 0x1001ef5f
push 0x10
mov edx, dword [ebp + 0xc]
push edx
push 0x38
mov eax, 1
shl eax, 3
lea ecx, [ebp + eax - 0x84]
push ecx
call fcn.10026140
add esp, 0x10
mov edx, dword [ebp - 0x94]
push edx
lea eax, [ebp - 0x84]
push eax
push 3
push 0
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x8c]
add eax, 0x41
mov byte [ebp - 0x85], al
movsx ecx, byte [ebp - 0x85]
push ecx
push str._INF__UpdateDosDriveOffset_EFI__Set_Drive___c
call fcn.100098e0
add esp, 8
jmp 0x1001ef8d
jmp 0x1001ef83
mov edx, 1
imul eax, edx, 0xc
movsx ecx, byte [ebp + eax - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERR__UpdateDosDriveOffset_EFI__GetLastError_d__RegQueryValueEx___c
call fcn.100098e0
add esp, 0xc
call fcn.1000a2a0
jmp 0x1001ee5e
movsx edx, byte [ebp - 0x85]
test edx, edx
jne 0x1001efa2
jmp 0x1001f0a6
mov dword [ebp - 0x8c], 2
jmp 0x1001efbd
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x1a
jge 0x1001f0a6
mov dword [ebp - 0x94], 0x40
mov ecx, dword [ebp - 0x8c]
add ecx, 0x41
mov edx, 1
imul eax, edx, 0xc
mov byte [ebp + eax - 0x44], cl
mov ecx, 1
imul edx, ecx, 0xc
movsx eax, byte [ebp + edx - 0x44]
movsx ecx, byte [ebp - 0x85]
cmp eax, ecx
jne 0x1001f003
jmp 0x1001efae
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xa0]
push ecx
push 0
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x1001f0a1
push 0x10
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, 1
shl edx, 3
lea eax, [ebp + edx - 0x84]
push eax
call fcn.10041f90
add esp, 0xc
test eax, eax
jne 0x1001f0a1
push 0x10
mov ecx, dword [ebp + 8]
push ecx
push 0x38
mov edx, 1
shl edx, 3
lea eax, [ebp + edx - 0x84]
push eax
call fcn.10026140
add esp, 0x10
mov ecx, dword [ebp - 0x94]
push ecx
lea edx, [ebp - 0x84]
push edx
push 3
push 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x1001f0a6
jmp 0x1001efae
cmp dword [ebp - 0x90], 0
je 0x1001f0bc
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str._SUC__UpdateDosDriveOffset_EFI__End
call fcn.100098e0
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret 8