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

Disassembly:
mov eax, dword [0x6fc788]
sub esp, 0x84c
push ebx
push ebp
push esi
push edi
push eax
call fcn.005ec0f0
add esp, 4
test eax, eax
je 0x5fc6ca
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push 0x6fc91c
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x5fc6d2
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x84c
ret
mov dword [esp + 0x10], 0
mov dl, byte [esp + 0x860]
mov esi, dword [esp + 0x868]
movsx ebp, dl
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x5c]
mov byte [esi + 0x10], dl
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.user32.dll_wsprintfA]
push ebp
lea edx, [esp + 0x20]
mov ebx, 3
push 0x6fc908
push edx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 0
mov byte [esi + 0x11], 0
call edi
add esp, 0xc
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x1c]
push 0x800
push eax
push ecx
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
lea edx, [esp + 0x5c]
lea eax, [esi + 0x30]
push edx
push 0x6fc8cc
push eax
call edi
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x5fc8de
push ebp
lea ecx, [esp + 0x20]
push 0x6fc90c
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push 0
mov ebp, 0x800
push edx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x5fc7d0
mov ecx, dword [esp + 0x14]
test ecx, ecx
jbe 0x5fc7ad
mov bl, byte [esp + eax + 0x5c]
mov edx, eax
shr edx, 1
add eax, 2
cmp eax, ecx
mov byte [esp + edx + 0x1c], bl
jb 0x5fc79a
mov cl, byte [esp + 0x20]
lea eax, [esi + 0x40]
cmp cl, 0x23
je 0x5fc7cb
lea edx, [esp + 0x20]
sub edx, eax
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, 0x23
jne 0x5fc7bf
mov byte [eax], 0
jmp 0x5fc7e0
lea ecx, [esi + 0x40]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x864]
lea edx, [esp + 0x5c]
push ebp
push edx
push eax
mov dword [esp + 0x20], ebp
call fcn.005fc940
add esp, 0xc
test eax, eax
jge 0x5fc819
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0xfffffff4
pop ebx
add esp, 0x84c
ret
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x5fc86a
lea edx, [esp + 0xa8]
lea eax, [esi + 0x50]
push edx
push 0x6fc8c4
push eax
mov dword [esp + 0x74], 0x4c
call edi
mov ecx, dword [esp + 0x74]
lea eax, [esi + 0x60]
lea edx, [esp + ecx + 0x70]
push edx
push 0x6fc8bc
push eax
call edi
mov ecx, dword [esp + 0x80]
lea eax, [esi + 0x74]
lea edx, [esp + ecx + 0x8c]
push edx
push 0x6fc8b4
push eax
jmp 0x5fc8a3
lea ecx, [esp + eax + 0x5c]
lea edx, [esi + 0x50]
push ecx
push 0x6fc8c4
push edx
call edi
mov eax, dword [esp + 0x78]
lea edx, [esi + 0x60]
lea ecx, [esp + eax + 0x68]
push ecx
push 0x6fc8bc
push edx
call edi
mov eax, dword [esp + 0x88]
lea edx, [esi + 0x74]
lea ecx, [esp + eax + 0x74]
push ecx
push 0x6fc8b4
push edx
call edi
add esp, 0x24
mov byte [esi + 0x58], 0
mov byte [esi + 0x70], 0
mov byte [esi + 0x78], 0
lea eax, [esi + 0x6f]
cmp byte [eax], 0
jne 0x5fc8c2
mov byte [eax], 0x20
dec eax
jmp 0x5fc8b7
lea eax, [esi + 0x57]
cmp byte [eax], 0
jne 0x5fc8d0
mov byte [eax], 0x20
dec eax
jmp 0x5fc8c5
lea eax, [esi + 0x77]
cmp byte [eax], 0
jne 0x5fc90d
mov byte [eax], 0x20
dec eax
jmp 0x5fc8d3
lea ecx, [esi + 0x40]
xor eax, eax
xor edx, edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
lea eax, [esi + 0x50]
xor ecx, ecx
mov dword [eax], edx
mov dword [eax + 4], edx
lea edx, [esi + 0x60]
lea eax, [esi + 0x74]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [eax], ecx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x864]
push edx
mov dword [esi + 4], ecx
mov dword [esi], 0
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84c
ret