Function at 0x4f0118
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4f0120
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f0913
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x539668]
mov eax, dword [eax]
mov si, word [eax + 0x44]
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0xec], 0
jne 0x4f0181
mov eax, dword [ebp - 8]
call fcn.004e7878
call fcn.0040a0fc
call fcn.0040a6f4
mov eax, dword [ebp - 4]
fstp qword [eax + 0x100]
wait
jmp 0x4f0190
call fcn.0040c258
mov eax, dword [ebp - 4]
fstp qword [eax + 0x100]
wait
mov eax, dword [ebp - 4]
call fcn.004f09cc
test eax, eax
jle 0x4f01db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf8]
test eax, eax
je 0x4f01b7
mov edx, dword [ebp - 4]
cmp byte [edx + 0x38], 7
je 0x4f01b7
call fcn.00403fc4
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xf8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
call fcn.00403fc4
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xf4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
mov edx, dword [ebp - 8]
call fcn.004e7118
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
mov dx, word [eax + 8]
cmp dx, 0x3e7
ja 0x4f0216
cmp word [eax + 0xa], 0x3e7
ja 0x4f0216
cmp dx, word [eax + 0xa]
jb 0x4f0216
cmp dword [eax + 0x14], 0
jge 0x4f0218
xor ebx, ebx
test bl, bl
jne 0x4f02b7
mov eax, dword [ebp - 4]
cmp byte [eax + 0xec], 0
jne 0x4f02b7
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004eee1c
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, 0x4f092c
call fcn.0040a390
mov eax, dword [ebp - 0x2c]
call fcn.00409fe4
test al, al
je 0x4f02b7
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004eee1c
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edx, 0x4f092c
call fcn.0040a390
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x41c6c8]
call fcn.00421980
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
mov edx, dword [ebp - 8]
call fcn.004e7118
mov ebx, eax
test bl, bl
je 0x4f02a9
mov byte [ebp - 0x21], 1
jmp 0x4f02b7
mov eax, dword [ebp - 8]
call fcn.00403fc4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
test bl, bl
jne 0x4f03a8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x19c], 0
jne 0x4f0344
mov eax, dword [ebp - 4]
cmp word [eax + 0x9a], 0
je 0x4f02f0
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x48]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x9c]
call dword [ebx + 0x98]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 2
jne 0x4f031a
lea edx, [ebp - 0x3c]
mov eax, 0xb7
call fcn.00409e48
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [0x4e8ff8]
call fcn.0040e128
call fcn.00404790
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 0
jne 0x4f0344
lea edx, [ebp - 0x40]
mov eax, 0xb6
call fcn.00409e48
mov ecx, dword [ebp - 0x40]
mov dl, 1
mov eax, dword [0x4e8f9c]
call fcn.0040e128
call fcn.00404790
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 1
je 0x4f035d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x19c], 0
je 0x4f04c4
push ebp
call fcn.004efd2c
pop ecx
test al, al
jne 0x4f04c4
mov eax, dword [0x539668]
mov eax, dword [eax]
mov edx, esi
call fcn.0046b08c
mov eax, dword [ebp - 4]
call fcn.004efb9c
lea edx, [ebp - 0x44]
mov eax, 0xb7
call fcn.00409e48
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x4e8f44]
call fcn.0040e128
call fcn.00404790
jmp 0x4f04c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10c], eax
cmp byte [ebp - 0x21], 0
je 0x4f03cf
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
cmp word [eax + 8], 0
jbe 0x4f043d
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, 3
call fcn.004e82cc
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x1c]
call fcn.00409544
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 1], 0x3a
je 0x4f0412
mov dl, 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4f0447
lea eax, [ebp - 0x1c]
call fcn.004e8ac8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4f0431
mov dl, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4f0447
mov dl, 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4f0447
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
cmp word [eax + 0xe], 0
jbe 0x4f04c4
cmp byte [ebp - 0x21], 0
jne 0x4f049a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x4f049a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
movzx eax, word [eax + 0xa]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x10c]
je 0x4f049a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
movzx edx, word [eax + 0xa]
inc edx
mov eax, dword [ebp - 4]
call fcn.004efa0c
mov dword [ebp - 8], eax
cmp byte [ebp - 0x21], 0
je 0x4f04ae
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x4f04c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
mov edx, dword [eax + 0x14]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
call fcn.004f09cc
test eax, eax
jne 0x4f04f6
mov cl, 2
mov dl, 1
mov eax, dword [0x4e61a0]
call fcn.004e7300
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xf4], ebx
mov byte [ebx + 0x18], 7
mov eax, dword [ebp - 4]
mov dword [eax + 0xf8], ebx
mov word [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4f07bf
mov eax, dword [ebp - 4]
call fcn.004efb84
mov dword [ebp - 0xc], eax
xor esi, esi
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
jne 0x4f052b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4f053e
push 0
push 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004e6b04
mov ebx, eax
jmp 0x4f0554
mov eax, dword [ebp - 4]
push eax
push 0x4efb60
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004e6b04
mov ebx, eax
inc esi
test bl, bl
jne 0x4f058b
cmp esi, 1
jne 0x4f058b
cmp word [ebp - 0x24], 0
jbe 0x4f058b
cmp dword [ebp - 0x10], 0
je 0x4f0574
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1e], 0
movzx edx, word [ebp - 0x24]
neg edx
mov cx, 1
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x10]
xor eax, eax
mov dword [ebp - 0x10], eax
test bl, bl
jne 0x4f059f
cmp esi, 2
je 0x4f059f
cmp word [ebp - 0x24], 0
jne 0x4f0513
mov word [ebp - 0x24], 0
test bl, bl
jne 0x4f0620
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
je 0x4f05c7
mov eax, dword [ebp - 0xc]
call fcn.00403fc4
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4f07d5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4f05de
push ebp
call fcn.004efd2c
pop ecx
test al, al
jne 0x4f0616
mov eax, dword [ebp - 0xc]
call fcn.00403fc4
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004efb9c
lea edx, [ebp - 0x4c]
mov eax, 0xb7
call fcn.00409e48
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x4e8f44]
call fcn.0040e128
call fcn.00404790
jmp 0x4f0620
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4f07bf
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
je 0x4f06bc
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x48]
test al, al
je 0x4f06a7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
mov edx, dword [ebp - 0x18]
call fcn.004e4b9c
mov edx, dword [0x4e5fe0]
call fcn.00404174
mov ebx, eax
mov esi, dword [ebx + 0x2c]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebx + 0x2c], esi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0x1e]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x156]
add edx, eax
mov cx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00403fc4
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4f06bc
mov eax, dword [ebp - 0xc]
call fcn.00403fc4
xor eax, eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x14]
jmp 0x4f07bf
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
jne 0x4f074f
xor eax, eax
push ebp
push 0x4f06f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f074f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
cmp word [eax + 8], 0
jbe 0x4f0779
mov eax, dword [ebp - 0xc]
call fcn.004e6d40
test al, al
je 0x4f0779
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004ef260
cmp dword [ebp - 0xc], 0
je 0x4f07b6
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0x1e]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x156]
add edx, eax
mov cx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 0x1e]
test ax, ax
jbe 0x4f07bc
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x4f07bc
mov word [ebp - 0x24], 0
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
movzx eax, word [eax + 0xe]
cmp eax, dword [ebp - 0x14]
jg 0x4f0506
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x164]
cmp word [ebx + 8], 0
jbe 0x4f0891
mov eax, ebx
call fcn.004e7288
test al, al
je 0x4f0891
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
mov ax, word [eax + 8]
movzx edx, ax
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x10c]
je 0x4f0825
cmp byte [ebp - 0x21], 0
jne 0x4f0825
movzx edx, ax
inc edx
mov eax, dword [ebp - 4]
call fcn.004efa0c
cmp byte [ebp - 0x21], 0
jne 0x4f0838
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.004ef418
jmp 0x4f0891
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
mov edx, dword [eax + 0x20]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
movzx ebx, word [eax + 0x18]
lea eax, [ebp - 0x28]
mov edx, ebx
call fcn.004053f0
lea eax, [ebp - 0x28]
call fcn.004052bc
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004ef4f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
mov byte [eax + 0x24], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
movzx eax, word [eax + 8]
inc eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
cmp byte [ebp - 0x21], 0
jne 0x4f08c3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10c], eax
jmp 0x4f08ce
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10c], edx
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0x38]
mov eax, dword [ebp - 4]
call fcn.004f0934
cmp byte [ebp - 0x21], 0
je 0x4f08f0
mov eax, dword [ebp - 8]
call fcn.00403fc4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f091a
lea eax, [ebp - 0x58]
mov edx, 0xd
call fcn.00404dd8
lea eax, [ebp - 0x1c]
call fcn.00404db4
ret