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

Disassembly:
mov eax, 0x5e7c
call fcn.00637690
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push 0x6fc91c
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x5fc0e4
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 0x6fc818
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x5fc4e8
push esi
lea eax, [esp + 0x80]
mov edi, 0x100
push 0x6fc90c
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 0x5fc4e8
mov esi, dword [esp + 0x1c]
xor ecx, ecx
test esi, esi
jle 0x5fc1a8
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 0x5fc18c
mov eax, dword [esp + 0x14]
lea ecx, [ebp - 0x124]
push eax
push 0x6fc908
push ecx
call ebx
mov dl, byte [esp + 0x1cc]
add esp, 0xc
cmp dl, 0x23
lea eax, [esp + 0x1c0]
lea ecx, [ebp - 0x120]
je 0x5fc1e3
mov byte [ecx], dl
mov dl, byte [eax + 1]
inc ecx
inc eax
cmp dl, 0x23
jne 0x5fc1d7
inc eax
mov byte [ecx], 0
lea esi, [ebp - 0x100]
mov cl, byte [eax]
mov edx, esi
cmp cl, 0x23
je 0x5fc202
mov byte [edx], cl
mov cl, byte [eax + 1]
inc edx
inc eax
cmp cl, 0x23
jne 0x5fc1f6
mov cl, byte [eax + 1]
inc eax
mov byte [edx], 0
cmp cl, 0x23
mov edx, ebp
je 0x5fc21c
mov byte [edx], cl
mov cl, byte [eax + 1]
inc edx
inc eax
cmp cl, 0x23
jne 0x5fc210
push ebp
lea eax, [ebp - 0x120]
push esi
push eax
lea edx, [esp + 0x5c8]
push 0x6fc8e0
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 0x5fc2ba
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 0x6fc8d0
push edx
mov dword [esp + 0x30], 3
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x5fc2af
lea eax, [esp + 0xbc]
lea ecx, [ebp + 0x100]
push eax
push 0x6fc8cc
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 0x5fc4e8
mov ecx, 0x264
xor eax, eax
mov edi, 0x731e1c
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
xor edi, edi
xor ecx, ecx
push edi
push edx
push 0x990
push 0x731e1c
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 0x5fc33e
push esi
jmp 0x5fc4e2
mov eax, dword [0x731e28]
cmp eax, edi
jne 0x5fc393
lea esi, [ebp + 0x200]
push 0x731e4c
push 0x6fc8c4
push esi
mov dword [0x731e28], 0x30
call ebx
mov ecx, dword [0x731e28]
lea edi, [ebp + 0x209]
lea edx, [ecx + 0x731e24]
push edx
push 0x6fc8bc
push edi
call ebx
mov eax, dword [0x731e28]
lea ebx, [ebp + 0x21a]
lea ecx, [eax + 0x731e34]
push ecx
jmp 0x5fc3d5
lea edx, [eax + 0x731e1c]
lea esi, [ebp + 0x200]
push edx
push 0x6fc8c4
push esi
call ebx
mov eax, dword [0x731e2c]
lea edi, [ebp + 0x209]
lea ecx, [eax + 0x731e1c]
push ecx
push 0x6fc8bc
push edi
call ebx
mov edx, dword [0x731e30]
lea ebx, [ebp + 0x21a]
lea eax, [edx + 0x731e1c]
push eax
push 0x6fc8b4
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.005fc070
add esp, 0xc
test eax, eax
je 0x5fc408
mov edx, dword [esp + 0x10]
push edx
jmp 0x5fc4e2
push 0x10
lea eax, [esi + 0x60]
push edi
push eax
call fcn.005fc070
add esp, 0xc
test eax, eax
je 0x5fc425
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x5fc4e2
push 4
lea edx, [esi + 0x74]
push ebx
push edx
call fcn.005fc070
add esp, 0xc
test eax, eax
jne 0x5fc4dd
mov al, byte [esp + 0x1bc]
lea edi, [esp + 0x1bc]
cmp al, 0x7b
je 0x5fc456
mov al, byte [edi + 1]
inc edi
cmp al, 0x7b
jne 0x5fc44e
push 3
lea ebx, [ebp - 0x120]
push 0x6fc8b0
push ebx
call fcn.005fc070
add esp, 0xc
test eax, eax
jne 0x5fc490
push 5
lea ecx, [esi + 0x40]
push 0x6fc8a8
push ecx
call fcn.005fc070
add esp, 0xc
test eax, eax
jne 0x5fc3fe
sub edi, 4
jmp 0x5fc4a7
push 4
push 0x6fc8a0
push ebx
call fcn.005fc070
add esp, 0xc
test eax, eax
jne 0x5fc4dd
sub edi, 3
mov eax, dword [esi]
movsx edx, byte [edi]
shr eax, 8
movsx ecx, al
sub edx, 0x30
cmp edx, ecx
jne 0x5fc4d5
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 0x5fc4e8
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 0x5fc100
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
test ecx, ecx
pop ebx
jne 0x5fc525
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 0x5fc540
mov eax, dword [esp + 0x5e80]
dec ecx
mov dl, byte [eax + ecx + 0x10]
mov byte [eax + ecx + 0x11], dl
jne 0x5fc52a
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