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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0x94], 0
mov eax, dword [0x1006d8ac]
mov dword [ebp - 0x84], eax
mov ecx, dword [0x1006d8b0]
mov dword [ebp - 0x80], ecx
mov edx, dword [0x1006d8b4]
mov dword [ebp - 0x7c], edx
mov ax, word [0x1006d8b8]
mov word [ebp - 0x78], ax
mov cl, byte [0x1006d8ba]
mov byte [ebp - 0x76], cl
push 0x31
push 0
lea edx, [ebp - 0x75]
push edx
call fcn.10033d10
add esp, 0xc
push 0x40
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.10033d10
add esp, 0xc
mov byte [ebp - 0x85], 0
mov byte [ebp - 0x86], 0
mov dword [ebp - 0xc0], 0
push str._INF__UpdateDosDriveOffset2__Start
call fcn.100098e0
add esp, 4
lea ecx, [ebp - 0x94]
push ecx
push 0xf003f
push 0
push 0x1006d8e0
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jne 0x1001ed55
mov dword [ebp - 0x8c], 2
jmp 0x1001e9d4
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
cmp dword [ebp - 0x8c], 0x1a
jge 0x1001eb48
mov dword [ebp - 0x90], 0x40
mov eax, dword [ebp - 0x8c]
add eax, 0x41
mov ecx, 1
imul edx, ecx, 0xc
mov byte [ebp + edx - 0x84], al
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0xac]
push edx
push 0
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x1001eaff
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0x44]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
cmp edx, dword [ebp + 0xc]
jne 0x1001eafd
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov dword [ebp + ecx - 0x44], edx
push 0
push 0x200
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10055010
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], edx
mov edx, 1
shl edx, 2
mov eax, dword [ebp - 0xa4]
mov dword [ebp + edx - 0x44], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp + edx - 0x40], ecx
mov dword [ebp - 0x90], 0xc
mov edx, dword [ebp - 0x90]
push edx
lea eax, [ebp - 0x44]
push eax
push 3
push 0
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x94]
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__UpdateDosDriveOffset2__Set_Drive___c
call fcn.100098e0
add esp, 8
jmp 0x1001eb48
jmp 0x1001eb3e
mov edx, 1
imul eax, edx, 0xc
movsx ecx, byte [ebp + eax - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERR__UpdateDosDriveOffset2__GetLastError_d__RegQueryValueEx___c
call fcn.100098e0
add esp, 0xc
movsx edx, byte [ebp - 0x86]
test edx, edx
jne 0x1001eb3e
mov eax, dword [ebp - 0x8c]
add eax, 0x41
mov byte [ebp - 0x86], al
call fcn.1000a2a0
jmp 0x1001e9c5
movsx ecx, byte [ebp - 0x85]
test ecx, ecx
jne 0x1001ebf0
mov edx, 1
imul eax, edx, 0xc
mov cl, byte [ebp - 0x86]
mov byte [ebp + eax - 0x84], cl
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ebp + eax - 0x44], ecx
push 0
push 0x200
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.10055010
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], edx
mov ecx, 1
shl ecx, 2
mov edx, dword [ebp - 0xa4]
mov dword [ebp + ecx - 0x44], edx
mov eax, dword [ebp - 0xa0]
mov dword [ebp + ecx - 0x40], eax
mov dword [ebp - 0x90], 0xc
mov ecx, dword [ebp - 0x90]
push ecx
lea edx, [ebp - 0x44]
push edx
push 3
push 0
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dl, byte [ebp - 0x86]
mov byte [ebp - 0x85], dl
movsx eax, byte [ebp - 0x85]
test eax, eax
je 0x1001ec03
movzx ecx, byte [ebp + 0x18]
test ecx, ecx
jne 0x1001ec0d
jmp 0x1001ed55
mov dword [ebp - 0x8c], 2
jmp 0x1001ec28
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
cmp dword [ebp - 0x8c], 0x1a
jge 0x1001ed55
mov dword [ebp - 0x90], 0x40
mov eax, dword [ebp - 0x8c]
add eax, 0x41
mov ecx, 1
imul edx, ecx, 0xc
mov byte [ebp + edx - 0x84], al
mov eax, 1
imul ecx, eax, 0xc
movsx edx, byte [ebp + ecx - 0x84]
movsx eax, byte [ebp - 0x85]
cmp edx, eax
jne 0x1001ec74
jmp 0x1001ec19
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0xac]
push eax
push 0
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x1001ed50
mov eax, 1
shl eax, 2
mov ecx, dword [ebp + eax - 0x44]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
shr edx, 9
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
xor ecx, ecx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb8]
cmp edx, dword [ebp + 0x10]
jne 0x1001ed50
mov eax, dword [ebp - 0xb4]
cmp eax, dword [ebp + 0x14]
jne 0x1001ed50
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov dword [ebp + edx - 0x44], eax
mov dword [ebp - 0x98], 0
mov ecx, dword [ebp - 0x98]
xor edx, edx
mov eax, 1
shl eax, 2
mov dword [ebp + eax - 0x44], ecx
mov dword [ebp + eax - 0x40], edx
mov ecx, dword [ebp - 0x90]
push ecx
lea edx, [ebp - 0x44]
push edx
push 3
push 0
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x1001ed55
jmp 0x1001ec19
cmp dword [ebp - 0x94], 0
je 0x1001ed6b
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str._SUC__UpdateDosDriveOffset2__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 0x14