Function at 0x69b770
Capabilities:
Get disk information
Get storage device properties
Query or enumerate registry value

Disassembly:
mov eax, 0x5e7c
call fcn.006d70a0
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push 0x7adf2c
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x69b7a4
or eax, 0xffffffff
add esp, 0x5e7c
ret
push ebx
push ebp
push esi
mov esi, 0x41
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], esi
lea ebp, [esp + 0xae0]
mov ebx, dword [sym.imp.user32.dll_wsprintfA]
push esi
lea ecx, [esp + 0x40]
push 0x7ade28
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x69bba8
push esi
lea eax, [esp + 0x80]
mov edi, 0x100
push 0x7adf1c
push eax
mov byte [esp + 0x4e], 0
mov dword [esp + 0x28], edi
call ebx
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xbc]
lea eax, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x88]
push 0
push ecx
push edx
mov dword [esp + 0x30], 3
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x69bba8
mov esi, dword [esp + 0x1c]
xor ecx, ecx
test esi, esi
jle 0x69b868
mov eax, ecx
add ecx, 2
cdq
sub eax, edx
mov dl, byte [esp + ecx + 0xba]
sar eax, 1
cmp ecx, esi
mov byte [esp + eax + 0x1bc], dl
jl 0x69b84c
mov eax, dword [esp + 0x14]
lea ecx, [ebp - 0x124]
push eax
push 0x7adf18
push ecx
call ebx
mov dl, byte [esp + 0x1cc]
add esp, 0xc
cmp dl, 0x23
lea eax, [esp + 0x1c0]
lea ecx, [ebp - 0x120]
je 0x69b8a3
mov byte [ecx], dl
mov dl, byte [eax + 1]
inc ecx
inc eax
cmp dl, 0x23
jne 0x69b897
inc eax
mov byte [ecx], 0
lea esi, [ebp - 0x100]
mov cl, byte [eax]
mov edx, esi
cmp cl, 0x23
je 0x69b8c2
mov byte [edx], cl
mov cl, byte [eax + 1]
inc edx
inc eax
cmp cl, 0x23
jne 0x69b8b6
mov cl, byte [eax + 1]
inc eax
mov byte [edx], 0
cmp cl, 0x23
mov edx, ebp
je 0x69b8dc
mov byte [edx], cl
mov cl, byte [eax + 1]
inc edx
inc eax
cmp cl, 0x23
jne 0x69b8d0
push ebp
lea eax, [ebp - 0x120]
push esi
push eax
lea edx, [esp + 0x5c8]
push 0x7adef0
push edx
call ebx
add esp, 0x14
lea eax, [esp + 0x24]
lea ecx, [esp + 0x5bc]
mov dword [esp + 0x18], 1
push eax
push 0x20019
push 0
push ecx
push 0x80000002
mov dword [esp + 0x30], edi
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x69b97a
lea edx, [esp + 0x1c]
lea eax, [esp + 0xbc]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0x7adee0
push edx
mov dword [esp + 0x30], 3
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x69b96f
lea eax, [esp + 0xbc]
lea ecx, [ebp + 0x100]
push eax
push 0x7adedc
push ecx
call ebx
add esp, 0xc
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push 0
push 0
push 3
push 0
push 3
lea eax, [esp + 0x50]
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x69bba8
mov ecx, 0x264
xor eax, eax
mov edi, 0x7d52ac
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
xor edi, edi
xor ecx, ecx
push edi
push edx
push 0x990
push 0x7d52ac
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ecx
push 0xc
push eax
mov dword [esp + 0x4c], ecx
push 0x2d1400
push esi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x69b9fe
push esi
jmp 0x69bba2
mov eax, dword [0x7d52b8]
cmp eax, edi
jne 0x69ba53
lea esi, [ebp + 0x200]
push 0x7d52dc
push 0x7aded4
push esi
mov dword [0x7d52b8], 0x30
call ebx
mov ecx, dword [0x7d52b8]
lea edi, [ebp + 0x209]
lea edx, [ecx + 0x7d52b4]
push edx
push 0x7adecc
push edi
call ebx
mov eax, dword [0x7d52b8]
lea ebx, [ebp + 0x21a]
lea ecx, [eax + 0x7d52c4]
push ecx
jmp 0x69ba95
lea edx, [eax + 0x7d52ac]
lea esi, [ebp + 0x200]
push edx
push 0x7aded4
push esi
call ebx
mov eax, dword [0x7d52bc]
lea edi, [ebp + 0x209]
lea ecx, [eax + 0x7d52ac]
push ecx
push 0x7adecc
push edi
call ebx
mov edx, dword [0x7d52c0]
lea ebx, [ebp + 0x21a]
lea eax, [edx + 0x7d52ac]
push eax
push 0x7adec4
push ebx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x24
push 8
push esi
mov esi, dword [esp + 0x5e98]
lea ecx, [esi + 0x50]
push ecx
call fcn.0069b730
add esp, 0xc
test eax, eax
je 0x69bac8
mov edx, dword [esp + 0x10]
push edx
jmp 0x69bba2
push 0x10
lea eax, [esi + 0x60]
push edi
push eax
call fcn.0069b730
add esp, 0xc
test eax, eax
je 0x69bae5
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x69bba2
push 4
lea edx, [esi + 0x74]
push ebx
push edx
call fcn.0069b730
add esp, 0xc
test eax, eax
jne 0x69bb9d
mov al, byte [esp + 0x1bc]
lea edi, [esp + 0x1bc]
cmp al, 0x7b
je 0x69bb16
mov al, byte [edi + 1]
inc edi
cmp al, 0x7b
jne 0x69bb0e
push 3
lea ebx, [ebp - 0x120]
push 0x7adec0
push ebx
call fcn.0069b730
add esp, 0xc
test eax, eax
jne 0x69bb50
push 5
lea ecx, [esi + 0x40]
push 0x7adeb8
push ecx
call fcn.0069b730
add esp, 0xc
test eax, eax
jne 0x69babe
sub edi, 4
jmp 0x69bb67
push 4
push 0x7adeb0
push ebx
call fcn.0069b730
add esp, 0xc
test eax, eax
jne 0x69bb9d
sub edi, 3
mov eax, dword [esi]
movsx edx, byte [edi]
shr eax, 8
movsx ecx, al
sub edx, 0x30
cmp edx, ecx
jne 0x69bb95
mov eax, dword [esp + 0x20]
mov cl, byte [esp + 0x14]
mov edx, dword [esp + 0x10]
mov byte [eax + esi + 0x10], cl
inc eax
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
add ebp, 0x343
jmp 0x69bba8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
inc esi
cmp esi, 0x5a
mov dword [esp + 0x14], esi
jle 0x69b7c0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
test ecx, ecx
pop ebx
jne 0x69bbe5
mov ecx, dword [esp + 0x5e80]
mov byte [ecx + 0x10], 0x3f
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
add esp, 0x5e7c
ret
cmp ecx, 2
jl 0x69bc00
mov eax, dword [esp + 0x5e80]
dec ecx
mov dl, byte [eax + ecx + 0x10]
mov byte [eax + ecx + 0x11], dl
jne 0x69bbea
mov byte [eax + 0x10], 0x3f
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
add esp, 0x5e7c
ret