Function at 0x69c920
Capabilities:
Get disk information
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x13e0
call fcn.006d70a0
mov eax, dword [0x7d52a8]
push ebx
push ebp
push esi
cmp eax, 4
push edi
mov dword [esp + 0x1c], 0
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x25], 0x63
mov byte [esp + 0x26], 0x73
mov byte [esp + 0x27], 0x69
mov byte [esp + 0x28], 0x30
mov byte [esp + 0x29], 0x3a
mov byte [esp + 0x2a], 0
mov byte [esp + 0x34], 0x12
mov byte [esp + 0x35], 0
mov byte [esp + 0x36], 0
mov byte [esp + 0x37], 0
mov byte [esp + 0x38], 0x24
mov byte [esp + 0x39], 0
jle 0x69c9af
lea eax, [esp + 0x30]
push eax
push 0x20019
push 0
push 0x7adf2c
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x69c9af
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x13e0
ret
mov esi, dword [esp + 0x13f4]
mov ebx, dword [sym.imp.user32.dll_wsprintfA]
mov byte [esp + 0x2c], 0x41
lea ecx, [esi + 0x74]
lea edx, [esi + 0x60]
mov dword [esp + 0x14], ecx
lea eax, [esi + 0x50]
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x4c]
and eax, 0xff
push eax
push 0x7ade28
push edx
mov dword [esp + 0x50], eax
call ebx
add esp, 0xc
lea eax, [esp + 0x50]
mov byte [esp + 0x53], 0
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x69ce17
mov eax, dword [0x7d52a8]
mov byte [esp + 0x52], 0
cmp eax, 4
jg 0x69ca31
mov dword [esp + 0x3c], 0
mov eax, 0x80000000
jmp 0x69ca3e
mov dword [esp + 0x3c], 3
mov eax, 0xc0000000
mov ecx, dword [esp + 0x3c]
mov edi, dword [sym.imp.kernel32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push ecx
lea edx, [esp + 0x60]
push eax
push edx
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x69cad9
push 0
push 0
push 3
push 0
push 3
lea eax, [esp + 0x60]
push 0x80000000
push eax
call edi
cmp eax, ebp
je 0x69ce55
mov ecx, dword [esp + 0x50]
push esi
push eax
push ecx
call fcn.0069bd40
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, 0x7c
add esp, 0xc
add edx, ecx
add esi, ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x14]
add ebp, ecx
add edi, ecx
add edx, ecx
mov ecx, dword [esp + 0x13f8]
inc eax
mov dword [esp + 0x18], ebp
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
je 0x69ce29
jmp 0x69ce17
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x3f0]
lea edx, [esp + 0x68]
rep stosd dword es:[edi], eax
push eax
push edx
lea eax, [esp + 0x3f8]
push 0x800
push eax
push 0
push 0
push 0x41018
push ebp
call dword [sym.imp.kernel32.dll_DeviceIoControl]
mov ecx, 0x1f
xor eax, eax
mov edi, esi
push 0x20
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x30]
mov dword [esi + 8], 2
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3f8]
mov dword [esi + 4], ebp
mov edx, eax
mov byte [esi + 0x10], cl
mov ecx, dword [esp + 0x3f9]
and edx, 0xff
and ecx, 0xff
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x3fa]
shl edx, 8
and ecx, 0xff
and al, 0xf
or edx, ecx
mov ecx, dword [esp + 0x3fb]
shl edx, 8
and ecx, 0xff
or edx, ecx
mov cl, byte [esp + 0x2c]
mov dword [esi], edx
mov edx, dword [esp + 0x24]
add cl, al
lea eax, [esp + 0x28]
push edx
push eax
mov byte [esp + 0x34], cl
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
push 1
lea ecx, [esp + 0x3f4]
push 0x40
push ecx
lea edx, [esp + 0x40]
push 6
push edx
push esi
call fcn.0069ce90
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x410]
push eax
push 0x7aded4
push ecx
call ebx
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x424]
push edx
push 0x7adecc
push eax
call ebx
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x440]
push ecx
push 0x7adec4
push edx
call ebx
mov eax, dword [0x7d52a8]
add esp, 0x3c
cmp eax, 4
jle 0x69cdd4
mov ebp, dword [esp + 0x44]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
push ebp
lea eax, [esp + 0x70]
push 0x7adf1c
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x40]
lea edx, [esp + 0x3f0]
lea eax, [esp + 0x48]
push ecx
push edx
mov edx, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x78]
push 0
push ecx
push edx
mov dword [esp + 0x60], 3
mov dword [esp + 0x58], 0x800
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x69ce17
mov edi, dword [esp + 0x40]
xor ecx, ecx
test edi, edi
jle 0x69cc79
mov eax, ecx
add ecx, 2
cdq
sub eax, edx
mov dl, byte [esp + ecx + 0x3ee]
sar eax, 1
cmp ecx, edi
mov byte [esp + eax + 0xbf0], dl
jl 0x69cc5d
push ebp
lea eax, [esp + 0xb0]
push 0x7adf18
push eax
call ebx
mov cl, byte [esp + 0xc00]
add esp, 0xc
cmp cl, 0x23
lea eax, [esp + 0xbf4]
lea edi, [esp + 0xb0]
je 0x69ccb2
mov byte [edi], cl
mov cl, byte [eax + 1]
inc edi
inc eax
cmp cl, 0x23
jne 0x69cca6
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x23
mov byte [edi], 0
lea edx, [esp + 0xd0]
je 0x69ccd1
mov byte [edx], cl
mov cl, byte [eax + 1]
inc edx
inc eax
cmp cl, 0x23
jne 0x69ccc5
mov cl, byte [eax + 1]
inc eax
mov byte [edx], 0
cmp cl, 0x23
lea edx, [esp + 0x1d0]
je 0x69ccf0
mov byte [edx], cl
mov cl, byte [eax + 1]
inc edx
inc eax
cmp cl, 0x23
jne 0x69cce4
cmp byte [esp + 0xb0], 0x55
jne 0x69cdd4
cmp byte [esp + 0xb1], 0x53
jne 0x69cdd4
cmp byte [esp + 0xb2], 0x42
jne 0x69cdd4
cmp byte [esp + 0xb3], 0x53
jne 0x69cdd4
cmp byte [esp + 0xb4], 0x54
jne 0x69cdd4
cmp byte [esp + 0xb5], 0x4f
jne 0x69cdd4
cmp byte [esp + 0xb6], 0x52
jne 0x69cdd4
mov ecx, dword [0x7add98]
push ecx
call fcn.0068b7b0
add esp, 4
test eax, eax
je 0x69cdd4
mov edx, dword [0x7add98]
push edx
call fcn.0068b810
add esp, 4
test eax, eax
jne 0x69cd9a
mov eax, dword [0x7add98]
push eax
call fcn.0068b7b0
add esp, 4
test eax, eax
je 0x69cdd4
mov ecx, dword [0x7add98]
cmp word [ecx + 0x94], 3
jb 0x69cdd4
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x3c]
push 0
push 0
push 3
push 0
push eax
lea ecx, [esp + 0x60]
push 0x80000000
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x69ce70
mov dword [esi + 8], 3
mov dword [esi + 4], eax
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, 0x7c
inc eax
add edx, ecx
add esi, ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x14]
add ebp, ecx
add edi, ecx
add edx, ecx
mov ecx, dword [esp + 0x13f8]
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
je 0x69ce29
mov al, byte [esp + 0x2c]
inc al
cmp al, 0x5a
mov byte [esp + 0x2c], al
jbe 0x69c9dd
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x13f4]
pop edi
pop esi
pop ebp
mov dword [0x7e0660], eax
mov dword [0x7e0664], edx
pop ebx
add esp, 0x13e0
ret
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0x13e0
ret
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0x13e0
ret