Function at 0x506d30
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5d05f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
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 0x5076ed
cmp byte [ebp], bl
je 0x5076ed
lea ecx, [esp + 0x1c]
call fcn.004662a0
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 0x506f7c
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov dword [esp + 0x28], 0x61
jmp 0x506e10
push 0x104
lea eax, [esp + 0xec]
push ebx
push eax
call fcn.005b5540
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 0x506f68
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 0x506e80
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x9c]
call fcn.00409790
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 0x506ec0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x506ec0
sub eax, edx
push eax
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x38]
call fcn.00409790
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x200], 4
call fcn.00413320
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x200], 5
call fcn.004ce2c0
lea ecx, [esp + 0x5c]
call fcn.00441d60
mov esi, 0x10
cmp dword [esp + 0x48], esi
jb 0x506f33
mov eax, dword [esp + 0x34]
push eax
call fcn.00595eb8
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 0x506f64
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00595eb8
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 0x506e10
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x506f81
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0xb8]
call fcn.00409790
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
push 4
push ebx
push 0x5f498c
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 6
call fcn.004264e0
cmp eax, 0xffffffff
je 0x50703c
cmp eax, ebx
jne 0x50703c
mov edx, dword [esp + 0xc4]
add edx, 0xfffffffc
push edx
push 4
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xbc]
call fcn.00425ed0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 7
call fcn.00407e40
cmp dword [esp + 0xac], 0x10
mov byte [esp + 0x1f8], 6
jb 0x5071ac
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00595eb8
add esp, 4
jmp 0x5071ac
push 0xc
push ebx
push str.SystemRoot_
lea ecx, [esp + 0xbc]
call fcn.004264e0
cmp eax, 0xffffffff
je 0x507260
cmp eax, ebx
jne 0x507260
mov edx, dword [esp + 0xc4]
add edx, 0xfffffff4
push edx
push 0xc
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xbc]
call fcn.00425ed0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 8
call fcn.00407e40
mov esi, 0x10
cmp dword [esp + 0xac], esi
mov byte [esp + 0x1f8], 6
jb 0x5070c0
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00595eb8
add esp, 4
lea edx, [esp + 0x94]
push 0x24
push edx
call fcn.0051c720
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x204], 9
call fcn.00407e40
cmp dword [esp + 0xac], esi
mov byte [esp + 0x1f8], 6
jb 0x50710b
mov eax, dword [esp + 0x98]
push eax
call fcn.00595eb8
add esp, 4
push 0x5f4230
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00404a60
lea ecx, [esp + 0xbc]
push ecx
push eax
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x210], 0xa
call fcn.0041f020
add esp, 0x18
mov byte [esp + 0x1f8], 0xb
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
call fcn.00407e40
cmp dword [esp + 0xac], esi
jb 0x507174
mov eax, dword [esp + 0x98]
push eax
call fcn.00595eb8
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 0x5071a8
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00595eb8
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.00407e40
mov edi, 0x10
cmp dword [esp + 0xe4], edi
mov dword [esp + 0x4c], 1
jb 0x5071f2
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00595eb8
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.00413810
mov eax, dword [esp + 0x20]
push eax
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0xc8], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jb 0x507257
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00595eb8
add esp, 4
mov eax, dword [esp + 0x18]
jmp 0x507724
push 9
push ebx
push str.WINDOWS_
lea ecx, [esp + 0xbc]
call fcn.004264e0
cmp eax, 0xffffffff
je 0x507374
cmp eax, ebx
jne 0x507374
mov edx, dword [esp + 0xc4]
add edx, 0xfffffff7
push edx
push 9
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xbc]
call fcn.00425ed0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0xc
call fcn.00407e40
mov esi, 0x10
cmp dword [esp + 0xac], esi
mov byte [esp + 0x1f8], 6
jb 0x5072e4
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00595eb8
add esp, 4
lea edx, [esp + 0x94]
push 0x24
push edx
call fcn.0051c720
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x204], 0xd
call fcn.00407e40
cmp dword [esp + 0xac], esi
mov byte [esp + 0x1f8], 6
jb 0x50732f
mov eax, dword [esp + 0x98]
push eax
call fcn.00595eb8
add esp, 4
push 0x5f4230
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00404a60
lea ecx, [esp + 0xbc]
push ecx
push eax
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x210], 0xe
call fcn.0041f020
add esp, 0x18
mov byte [esp + 0x1f8], 0xf
jmp 0x50714b
push 9
push ebx
push str.Windows_
lea ecx, [esp + 0xbc]
call fcn.004264e0
cmp eax, 0xffffffff
je 0x507496
cmp eax, ebx
jne 0x507496
mov edx, dword [esp + 0xc4]
add edx, 0xfffffff7
push edx
push 9
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xbc]
call fcn.00425ed0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0x10
call fcn.00407e40
lea ecx, [esp + 0x94]
mov byte [esp + 0x1f8], 6
call fcn.0040bf30
lea ecx, [esp + 0x94]
push 0x24
push ecx
call fcn.0051c720
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x204], 0x11
call fcn.00407e40
lea ecx, [esp + 0x94]
mov byte [esp + 0x1f8], 6
call fcn.0040bf30
push 0x5f4230
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00404a60
lea ecx, [esp + 0xbc]
push ecx
push eax
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x210], 0x12
call fcn.0041f020
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0x13
call fcn.00407e40
lea ecx, [esp + 0x94]
call fcn.0040bf30
lea ecx, [esp + 0x30]
mov byte [esp + 0x1f8], 6
call fcn.0040bf30
jmp 0x5071ac
push 0xf
push ebx
push str.Program_Files_
lea ecx, [esp + 0xbc]
call fcn.004264e0
cmp eax, 0xffffffff
je 0x5075b8
cmp eax, ebx
jne 0x5075b8
mov eax, dword [esp + 0xc4]
add eax, 0xfffffff1
push eax
push 0xf
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0xbc]
call fcn.00425ed0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0x14
call fcn.00407e40
lea ecx, [esp + 0x94]
mov byte [esp + 0x1f8], 6
call fcn.0040bf30
lea edx, [esp + 0x94]
push 0x26
push edx
call fcn.0051c720
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x204], 0x15
call fcn.00407e40
lea ecx, [esp + 0x94]
mov byte [esp + 0x1f8], 6
call fcn.0040bf30
push 0x5f4230
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00404a60
lea edx, [esp + 0xbc]
push edx
push eax
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x210], 0x16
call fcn.0041f020
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0x17
call fcn.00407e40
lea ecx, [esp + 0x94]
call fcn.0040bf30
lea ecx, [esp + 0x30]
mov byte [esp + 0x1f8], 6
call fcn.0040bf30
jmp 0x5071ac
push 0x16
push ebx
push str.DeviceHarddiskVolume
lea ecx, [esp + 0xbc]
call fcn.004264e0
cmp eax, 0xffffffff
je 0x5071ac
cmp eax, ebx
jne 0x5071ac
cmp dword [esp + 0xc4], 2
jbe 0x5071ac
push 0x16
push ebx
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0xbc]
call fcn.00425ed0
push 0x16
lea ecx, [esp + 0xb4]
mov byte [esp + 0x1fc], 0x18
call fcn.00407400
mov dl, byte [eax]
mov byte [esp + 0x28], dl
mov eax, dword [esp + 0x28]
push eax
push 1
lea ecx, [esp + 0x9c]
call fcn.00406df0
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x24]
call fcn.004cdc00
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.0049f000
test al, al
je 0x5076d4
mov eax, dword [esp + 0xc4]
add eax, 0xffffffe9
push eax
push 0x17
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0xbc]
call fcn.00425ed0
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x1fc], 0x19
call fcn.004816d0
add eax, 0x1c
push eax
lea edx, [esp + 0x38]
push edx
call fcn.0041f020
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0x1a
call fcn.00407e40
lea ecx, [esp + 0x30]
call fcn.0040bf30
lea ecx, [esp + 0x5c]
call fcn.0040bf30
lea ecx, [esp + 0x94]
mov byte [esp + 0x1f8], 6
call fcn.0040bf30
jmp 0x5071ac
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.00407e40
cmp dword [esp + 0xc8], 0x10
jb 0x507722
mov eax, dword [esp + 0xb4]
push eax
call fcn.00595eb8
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.005b1988
add esp, 0x1e8
ret