Function at 0x505d10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5cf590
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
mov esi, dword [esp + 0x200]
mov ebp, dword [esp + 0x204]
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov eax, 0xf
mov dword [esp + 0x18], esi
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
cmp ebp, ebx
mov edi, 1
mov dword [esp + 0x1f8], edi
je 0x5066cd
cmp byte [ebp], bl
je 0x5066cd
lea ecx, [esp + 0x1c]
call fcn.00465d20
mov dword [esp + 0x20], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 8], eax
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x208], edi
mov byte [esp + 0x1f8], 2
jne 0x505f5c
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov dword [esp + 0x28], 0x61
jmp 0x505df0
push 0x104
lea eax, [esp + 0xec]
push ebx
push eax
call fcn.005b4520
mov cl, byte [esp + 0x34]
add esp, 0xc
push 0x104
lea edx, [esp + 0xec]
push edx
lea eax, [esp + 0x1c]
mov word [esp + 0x1c], bx
push eax
mov byte [esp + 0x22], bl
mov byte [esp + 0x20], cl
mov byte [esp + 0x21], 0x3a
call edi
test eax, eax
je 0x505f48
mov esi, 0xf
lea eax, [esp + 0x14]
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x505e60
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x9c]
call fcn.004098b0
lea eax, [esp + 0xe8]
mov byte [esp + 0x1f8], 3
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edx, [eax + 1]
jmp 0x505ea0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x505ea0
sub eax, edx
push eax
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x38]
call fcn.004098b0
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x200], 4
call fcn.00413390
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x200], 5
call fcn.004cd970
lea ecx, [esp + 0x5c]
call fcn.0040ce70
mov esi, 0x10
cmp dword [esp + 0x48], esi
jb 0x505f13
mov eax, dword [esp + 0x34]
push eax
call fcn.00594e98
add esp, 4
cmp dword [esp + 0xac], esi
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x1f8], 2
jb 0x505f44
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00594e98
add esp, 4
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, 0x7a
mov dword [esp + 0x28], eax
jl 0x505df0
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x505f61
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0xb8]
call fcn.004098b0
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
push 4
push ebx
push 0x5f398c
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 6
call fcn.00425960
cmp eax, 0xffffffff
je 0x50601c
cmp eax, ebx
jne 0x50601c
mov edx, dword [esp + 0xc4]
add edx, 0xfffffffc
push edx
push 4
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xbc]
call fcn.004253c0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 7
call fcn.004080b0
cmp dword [esp + 0xac], 0x10
mov byte [esp + 0x1f8], 6
jb 0x50618c
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00594e98
add esp, 4
jmp 0x50618c
push 0xc
push ebx
push str.SystemRoot_
lea ecx, [esp + 0xbc]
call fcn.00425960
cmp eax, 0xffffffff
je 0x506240
cmp eax, ebx
jne 0x506240
mov edx, dword [esp + 0xc4]
add edx, 0xfffffff4
push edx
push 0xc
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xbc]
call fcn.004253c0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 8
call fcn.004080b0
mov esi, 0x10
cmp dword [esp + 0xac], esi
mov byte [esp + 0x1f8], 6
jb 0x5060a0
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00594e98
add esp, 4
lea edx, [esp + 0x94]
push 0x24
push edx
call fcn.0051b790
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x204], 9
call fcn.004080b0
cmp dword [esp + 0xac], esi
mov byte [esp + 0x1f8], 6
jb 0x5060eb
mov eax, dword [esp + 0x98]
push eax
call fcn.00594e98
add esp, 4
push 0x5f3230
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00404a40
lea ecx, [esp + 0xbc]
push ecx
push eax
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x210], 0xa
call fcn.0041e4f0
add esp, 0x18
mov byte [esp + 0x1f8], 0xb
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
call fcn.004080b0
cmp dword [esp + 0xac], esi
jb 0x506154
mov eax, dword [esp + 0x98]
push eax
call fcn.00594e98
add esp, 4
cmp dword [esp + 0x48], esi
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
mov byte [esp + 0x1f8], 6
jb 0x506188
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00594e98
add esp, 4
mov esi, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xb8]
mov ebp, 0xf
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004080b0
mov edi, 0x10
cmp dword [esp + 0xe4], edi
mov dword [esp + 0x4c], 1
jb 0x5061d2
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00594e98
add esp, 4
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
mov edx, dword [eax]
push edx
mov esi, ecx
push esi
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x20c], 1
call fcn.00465350
mov eax, dword [esp + 0x20]
push eax
call fcn.00594e98
add esp, 4
cmp dword [esp + 0xc8], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jb 0x506237
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00594e98
add esp, 4
mov eax, dword [esp + 0x18]
jmp 0x506704
push 9
push ebx
push str.WINDOWS_
lea ecx, [esp + 0xbc]
call fcn.00425960
cmp eax, 0xffffffff
je 0x506354
cmp eax, ebx
jne 0x506354
mov edx, dword [esp + 0xc4]
add edx, 0xfffffff7
push edx
push 9
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xbc]
call fcn.004253c0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0xc
call fcn.004080b0
mov esi, 0x10
cmp dword [esp + 0xac], esi
mov byte [esp + 0x1f8], 6
jb 0x5062c4
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00594e98
add esp, 4
lea edx, [esp + 0x94]
push 0x24
push edx
call fcn.0051b790
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x204], 0xd
call fcn.004080b0
cmp dword [esp + 0xac], esi
mov byte [esp + 0x1f8], 6
jb 0x50630f
mov eax, dword [esp + 0x98]
push eax
call fcn.00594e98
add esp, 4
push 0x5f3230
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00404a40
lea ecx, [esp + 0xbc]
push ecx
push eax
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x210], 0xe
call fcn.0041e4f0
add esp, 0x18
mov byte [esp + 0x1f8], 0xf
jmp 0x50612b
push 9
push ebx
push str.Windows_
lea ecx, [esp + 0xbc]
call fcn.00425960
cmp eax, 0xffffffff
je 0x506476
cmp eax, ebx
jne 0x506476
mov edx, dword [esp + 0xc4]
add edx, 0xfffffff7
push edx
push 9
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xbc]
call fcn.004253c0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0x10
call fcn.004080b0
lea ecx, [esp + 0x94]
mov byte [esp + 0x1f8], 6
call fcn.0040c050
lea ecx, [esp + 0x94]
push 0x24
push ecx
call fcn.0051b790
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x204], 0x11
call fcn.004080b0
lea ecx, [esp + 0x94]
mov byte [esp + 0x1f8], 6
call fcn.0040c050
push 0x5f3230
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00404a40
lea ecx, [esp + 0xbc]
push ecx
push eax
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x210], 0x12
call fcn.0041e4f0
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0x13
call fcn.004080b0
lea ecx, [esp + 0x94]
call fcn.0040c050
lea ecx, [esp + 0x30]
mov byte [esp + 0x1f8], 6
call fcn.0040c050
jmp 0x50618c
push 0xf
push ebx
push str.Program_Files_
lea ecx, [esp + 0xbc]
call fcn.00425960
cmp eax, 0xffffffff
je 0x506598
cmp eax, ebx
jne 0x506598
mov eax, dword [esp + 0xc4]
add eax, 0xfffffff1
push eax
push 0xf
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0xbc]
call fcn.004253c0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0x14
call fcn.004080b0
lea ecx, [esp + 0x94]
mov byte [esp + 0x1f8], 6
call fcn.0040c050
lea edx, [esp + 0x94]
push 0x26
push edx
call fcn.0051b790
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x204], 0x15
call fcn.004080b0
lea ecx, [esp + 0x94]
mov byte [esp + 0x1f8], 6
call fcn.0040c050
push 0x5f3230
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00404a40
lea edx, [esp + 0xbc]
push edx
push eax
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x210], 0x16
call fcn.0041e4f0
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0x17
call fcn.004080b0
lea ecx, [esp + 0x94]
call fcn.0040c050
lea ecx, [esp + 0x30]
mov byte [esp + 0x1f8], 6
call fcn.0040c050
jmp 0x50618c
push 0x16
push ebx
push str.DeviceHarddiskVolume
lea ecx, [esp + 0xbc]
call fcn.00425960
cmp eax, 0xffffffff
je 0x50618c
cmp eax, ebx
jne 0x50618c
cmp dword [esp + 0xc4], 2
jbe 0x50618c
push 0x16
push ebx
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0xbc]
call fcn.004253c0
push 0x16
lea ecx, [esp + 0xb4]
mov byte [esp + 0x1fc], 0x18
call fcn.00407670
mov dl, byte [eax]
mov byte [esp + 0x28], dl
mov eax, dword [esp + 0x28]
push eax
push 1
lea ecx, [esp + 0x9c]
call fcn.00407090
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x24]
call fcn.004cd2b0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ecx
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x30], eax
call fcn.0042d140
test al, al
je 0x5066b4
mov eax, dword [esp + 0xc4]
add eax, 0xffffffe9
push eax
push 0x17
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0xbc]
call fcn.004253c0
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x1fc], 0x19
call fcn.00413370
add eax, 0x1c
push eax
lea edx, [esp + 0x38]
push edx
call fcn.0041e4f0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0x1a
call fcn.004080b0
lea ecx, [esp + 0x30]
call fcn.0040c050
lea ecx, [esp + 0x5c]
call fcn.0040c050
lea ecx, [esp + 0x94]
mov byte [esp + 0x1f8], 6
call fcn.0040c050
jmp 0x50618c
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb8]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004080b0
cmp dword [esp + 0xc8], 0x10
jb 0x506702
mov eax, dword [esp + 0xb4]
push eax
call fcn.00594e98
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.005b0968
add esp, 0x1e8
ret