Function at 0x4de350
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4de358
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4deb45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x50d178]
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 0x4de3b9
mov eax, dword [ebp - 8]
call fcn.004d5b24
call fcn.004095e8
call fcn.00409b5c
mov eax, dword [ebp - 4]
fstp qword [eax + 0x100]
wait
jmp 0x4de3c8
call fcn.0040af30
mov eax, dword [ebp - 4]
fstp qword [eax + 0x100]
wait
mov eax, dword [ebp - 4]
call fcn.004debfc
test eax, eax
jle 0x4de413
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf8]
test eax, eax
je 0x4de3ef
mov edx, dword [ebp - 4]
cmp byte [edx + 0x38], 7
je 0x4de3ef
call fcn.0040358c
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.0040358c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xf4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov edx, dword [ebp - 8]
call fcn.004d6dc0
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov dx, word [eax + 8]
cmp dx, 0x3e7
ja 0x4de44e
cmp word [eax + 0xa], 0x3e7
ja 0x4de44e
cmp dx, word [eax + 0xa]
jb 0x4de44e
cmp dword [eax + 0x14], 0
jge 0x4de450
xor ebx, ebx
test bl, bl
jne 0x4de4ef
mov eax, dword [ebp - 4]
cmp byte [eax + 0xec], 0
jne 0x4de4ef
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004dd2d0
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, 0x4deb5c
call fcn.0040987c
mov eax, dword [ebp - 0x2c]
call fcn.004094cc
test al, al
je 0x4de4ef
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004dd2d0
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edx, 0x4deb5c
call fcn.0040987c
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x417c84]
call fcn.0041d0e0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov edx, dword [ebp - 8]
call fcn.004d6dc0
mov ebx, eax
test bl, bl
je 0x4de4e1
mov byte [ebp - 0x21], 1
jmp 0x4de4ef
mov eax, dword [ebp - 8]
call fcn.0040358c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
test bl, bl
jne 0x4de5e0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x170], 0
jne 0x4de57c
mov eax, dword [ebp - 4]
cmp word [eax + 0x9a], 0
je 0x4de528
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 0x4de552
lea edx, [ebp - 0x3c]
mov eax, 0xb7
call fcn.00409328
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [0x4d7474]
call fcn.0040cd80
call fcn.00403ddc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 0
jne 0x4de57c
lea edx, [ebp - 0x40]
mov eax, 0xb6
call fcn.00409328
mov ecx, dword [ebp - 0x40]
mov dl, 1
mov eax, dword [0x4d7418]
call fcn.0040cd80
call fcn.00403ddc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 1
je 0x4de595
mov eax, dword [ebp - 4]
cmp byte [eax + 0x170], 0
je 0x4de6fc
push ebp
call fcn.004ddf64
pop ecx
test al, al
jne 0x4de6fc
mov eax, dword [0x50d178]
mov eax, dword [eax]
mov edx, esi
call fcn.00461178
mov eax, dword [ebp - 4]
call fcn.004dded8
lea edx, [ebp - 0x44]
mov eax, 0xb7
call fcn.00409328
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x4d73c0]
call fcn.0040cd80
call fcn.00403ddc
jmp 0x4de6fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10c], eax
cmp byte [ebp - 0x21], 0
je 0x4de607
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
cmp word [eax + 8], 0
jbe 0x4de675
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, 3
call fcn.004d5cf0
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x1c]
call fcn.00408980
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 1], 0x3a
je 0x4de64a
mov dl, 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4de67f
lea eax, [ebp - 0x1c]
call fcn.004d6014
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4de669
mov dl, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4de67f
mov dl, 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4de67f
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 + 0x138]
cmp word [eax + 0xe], 0
jbe 0x4de6fc
cmp byte [ebp - 0x21], 0
jne 0x4de6d2
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x4de6d2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx eax, word [eax + 0xa]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x10c]
je 0x4de6d2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx edx, word [eax + 0xa]
inc edx
mov eax, dword [ebp - 4]
call fcn.004ddd48
mov dword [ebp - 8], eax
cmp byte [ebp - 0x21], 0
je 0x4de6e6
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x4de6fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov edx, dword [eax + 0x14]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
call fcn.004debfc
test eax, eax
jne 0x4de72e
mov cl, 2
mov dl, 1
mov eax, dword [0x4d6218]
call fcn.004d6f9c
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 0x4de9f1
mov eax, dword [ebp - 4]
call fcn.004ddec0
mov dword [ebp - 0xc], eax
xor esi, esi
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
jne 0x4de763
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4de776
push 0
push 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004d6810
mov ebx, eax
jmp 0x4de78c
mov eax, dword [ebp - 4]
push eax
push 0x4dde9c
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004d6810
mov ebx, eax
inc esi
test bl, bl
jne 0x4de7c3
cmp esi, 1
jne 0x4de7c3
cmp word [ebp - 0x24], 0
jbe 0x4de7c3
cmp dword [ebp - 0x10], 0
je 0x4de7ac
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 + 0x14]
xor eax, eax
mov dword [ebp - 0x10], eax
test bl, bl
jne 0x4de7d7
cmp esi, 2
je 0x4de7d7
cmp word [ebp - 0x24], 0
jne 0x4de74b
mov word [ebp - 0x24], 0
test bl, bl
jne 0x4de858
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
je 0x4de7ff
mov eax, dword [ebp - 0xc]
call fcn.0040358c
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4dea07
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4de816
push ebp
call fcn.004ddf64
pop ecx
test al, al
jne 0x4de84e
mov eax, dword [ebp - 0xc]
call fcn.0040358c
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004dded8
lea edx, [ebp - 0x4c]
mov eax, 0xb7
call fcn.00409328
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x4d73c0]
call fcn.0040cd80
call fcn.00403ddc
jmp 0x4de858
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4de9f1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
je 0x4de8f1
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 0x4de8dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
mov edx, dword [ebp - 0x18]
call fcn.004cf180
mov edx, dword [0x4d6058]
call fcn.0040373c
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 - 0xc]
movzx eax, word [eax + 0x22]
add edx, eax
mov cx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0040358c
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4de8f1
mov eax, dword [ebp - 0xc]
call fcn.0040358c
xor eax, eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x14]
jmp 0x4de9f1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
jne 0x4de984
xor eax, eax
push ebp
push 0x4de92a
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 0x4de984
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
cmp word [eax + 8], 0
jbe 0x4de9ae
mov eax, dword [ebp - 0xc]
call fcn.004d6a4c
test al, al
je 0x4de9ae
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004dd590
cmp dword [ebp - 0xc], 0
je 0x4de9e8
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0x1e]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x22]
add edx, eax
mov cx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 0x1e]
test ax, ax
jbe 0x4de9ee
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x4de9ee
mov word [ebp - 0x24], 0
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx eax, word [eax + 0xe]
cmp eax, dword [ebp - 0x14]
jg 0x4de73e
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x138]
cmp word [ebx + 8], 0
jbe 0x4deac3
mov eax, ebx
call fcn.004d6f2c
test al, al
je 0x4deac3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov ax, word [eax + 8]
movzx edx, ax
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x10c]
je 0x4dea57
cmp byte [ebp - 0x21], 0
jne 0x4dea57
movzx edx, ax
inc edx
mov eax, dword [ebp - 4]
call fcn.004ddd48
cmp byte [ebp - 0x21], 0
jne 0x4dea6a
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.004dd770
jmp 0x4deac3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov edx, dword [eax + 0x20]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx ebx, word [eax + 0x18]
lea eax, [ebp - 0x28]
mov edx, ebx
call fcn.00404aac
lea eax, [ebp - 0x28]
call fcn.00404978
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004dd86c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov byte [eax + 0x24], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx eax, word [eax + 8]
inc eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
cmp byte [ebp - 0x21], 0
jne 0x4deaf5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10c], eax
jmp 0x4deb00
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.004deb64
cmp byte [ebp - 0x21], 0
je 0x4deb22
mov eax, dword [ebp - 8]
call fcn.0040358c
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 0x4deb4c
lea eax, [ebp - 0x58]
mov edx, 0xd
call fcn.00404484
lea eax, [ebp - 0x1c]
call fcn.00404460
ret