Function at 0x5fbb90
Capabilities:
Get disk information
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x3428
call fcn.00637690
lea eax, [esp + 4]
push ebx
push eax
xor ebx, ebx
push 0xf003f
push ebx
push 0x6fc894
push 0x80000002
mov dword [esp + 0x20], 4
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x5fbbcf
or eax, 0xffffffff
pop ebx
add esp, 0x3428
ret
push ebp
push esi
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov ebp, dword [sym.imp.user32.dll_wsprintfA]
mov esi, ebx
shl esi, 8
push 0x6fc888
lea edi, [esp + esi + 0x23c]
push edi
call ebp
mov ecx, dword [esp + 0x28]
add esp, 8
mov eax, ecx
inc ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea ecx, [esp + esi + 0x252]
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
mov dword [esp + 0x30], 0xf6
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
jne 0x5fbd18
lea eax, [esp + 0x24]
push eax
push 0xf003f
push 0
push edi
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5fbd04
push edi
call fcn.005fc050
mov dword [esp + 0x2c], eax
add eax, esi
lea ecx, [esp + 0x13c]
push edi
mov byte [esp + eax + 0x240], 0x5c
push ecx
mov byte [esp + eax + 0x245], 0
call ebp
add esp, 0xc
xor ebp, ebp
cmp ebx, 0x32
jge 0x5fbd04
mov edi, esi
lea edx, [esp + 0x138]
lea esi, [esp + edi + 0x238]
push edx
push esi
call dword [sym.imp.user32.dll_wsprintfA]
push esi
call fcn.005fc050
add esp, 0xc
lea edx, [esp + 0x30]
mov ecx, 0x100
mov ebx, ebp
push edx
sub ecx, eax
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
push esi
mov dword [esp + 0x28], ecx
inc ebp
call fcn.005fc050
mov edx, dword [esp + 0x3c]
add eax, edi
add esp, 4
lea ecx, [esp + eax + 0x24c]
push ecx
push ebx
push edx
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
jne 0x5fbd00
mov edx, dword [esp + 0x1c]
add edi, 0x100
inc edx
cmp edi, 0x3200
mov dword [esp + 0x1c], edx
jl 0x5fbc89
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp ebx, 0x32
jl 0x5fbbda
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebp, dword [esp + 0x343c]
mov dword [esp + 0x20], 0
test ebx, ebx
jle 0x5fc031
test ebx, ebx
jle 0x5fc031
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea edx, [esp + 0x238]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5fbffb
mov ecx, 0x40
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
mov ebx, 0x100
push 0x6fc878
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], ebx
call esi
lea eax, [esp + 0x38]
push 8
lea ecx, [ebp + 0x50]
push eax
push ecx
call fcn.005fc070
add esp, 0xc
test eax, eax
je 0x5fbddb
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x5fc000
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push 0
push 0x6fc86c
push eax
mov dword [esp + 0x28], ebx
call esi
lea ecx, [esp + 0x38]
push 0x10
lea edx, [ebp + 0x60]
push ecx
push edx
call fcn.005fc070
add esp, 0xc
test eax, eax
je 0x5fbe30
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x5fc000
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push 0
push 0x6fc85c
push ecx
mov dword [esp + 0x28], ebx
call esi
lea edx, [esp + 0x38]
push 4
lea eax, [ebp + 0x74]
push edx
push eax
call fcn.005fc070
add esp, 0xc
test eax, eax
je 0x5fbe85
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x5fc000
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0x6fc84c
push edx
mov dword [esp + 0x28], ebx
call esi
lea eax, [esp + 0x38]
push eax
call fcn.00637f19
xor ecx, ecx
add esp, 4
mov cl, byte [ebp + 1]
cmp ecx, eax
je 0x5fbed9
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x5fc000
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push 0
push 0x6fc844
push eax
mov dword [esp + 0x28], ebx
call esi
lea ecx, [esp + 0x38]
push ecx
call fcn.00637f19
mov edx, dword [ebp]
add esp, 4
and edx, 0xff
cmp edx, eax
je 0x5fbf31
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x5fc000
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push 0
push 0x6fc824
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x5fbfb8
movsx edx, byte [esp + 0x38]
push edx
lea eax, [esp + 0x13c]
push 0x6fc818
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x5fbfab
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x38]
mov byte [eax + ebp + 0x10], dl
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x5fc000
mov eax, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0x6fc80c
push ecx
mov byte [ebp + 0x10], 0x3f
mov dword [esp + 0x40], 0
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x5fc000
mov ebx, 0x100
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
add ecx, ebx
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], eax
jne 0x5fbd57
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5fc031
cmp eax, 2
jl 0x5fc035
mov cl, byte [eax + ebp + 0xf]
mov byte [eax + ebp + 0x10], cl
dec eax
jne 0x5fc026
mov byte [ebp + 0x10], 0x3f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3428
ret