Function at 0x4dd682
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x238
mov esi, dword [ebp + 0xc]
mov eax, dword [0x674014]
xor eax, ebp
mov dword [esp + 0x230], eax
lea edi, [esp + 0x28]
mov ecx, edi
push esi
call fcn.00419880
push edi
call fcn.004dcfe4
add esp, 4
cmp byte [edi + 0xb], 0
jns 0x4dd6cd
push dword [esp + 0x28]
mov ebx, eax
call fcn.005dc756
mov eax, ebx
add esp, 4
mov bl, 1
test al, al
jne 0x4dd8f2
mov eax, dword [ebp + 8]
xor ecx, ecx
lea ebx, [esp + 0x18]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
xor edi, edi
mov dword [ebx + 8], ecx
push ebx
push eax
call fcn.004dd230
add esp, 8
test al, al
je 0x4dd8dd
xor eax, eax
dec eax
lea edi, [esp + 8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
push esi
call fcn.00419880
mov cl, byte [edi + 0xb]
test cl, cl
js 0x4dd727
movzx eax, cl
cmp word [esp + eax*2 + 6], 0x5c
je 0x4dd737
jmp 0x4dd778
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x4dd778
dec eax
lea edx, [esp + 0x14]
lea esi, [esp + 8]
lea ecx, [esp + 0x28]
push edx
push eax
push 0
push esi
call fcn.004ab82c
cmp byte [esi + 0xb], 0
jns 0x4dd760
push dword [esp + 8]
call fcn.005dc756
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 8], xmm0
mov cl, byte [esp + 0x13]
test cl, cl
jns 0x4dd780
mov edi, dword [esp + 8]
cmp byte [esp + 0x23], 0
jns 0x4dd78b
mov ebx, dword [esp + 0x18]
push edi
push ebx
call fcn.005f434c
add esp, 8
test eax, eax
je 0x4dd815
lea edi, [esp + 8]
mov ecx, edi
mov edx, edi
call fcn.004dd509
mov ebx, eax
mov ecx, edi
call fcn.004dd5a0
test al, al
jne 0x4dd81c
test bl, bl
je 0x4dd81c
xor ebx, ebx
lea esi, [esp + 0x28]
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 8], ebx
lea ecx, [esp + 0x18]
mov edx, esi
call fcn.004dd5eb
test al, al
je 0x4dd7f9
cmp byte [esp + 0x13], 0
jns 0x4dd7df
mov edi, dword [esp + 8]
cmp byte [esp + 0x33], 0
jns 0x4dd7ea
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.005f434c
add esp, 8
test eax, eax
sete bl
cmp byte [esp + 0x33], 0
jns 0x4dd8c8
push dword [esp + 0x28]
call fcn.005dc756
add esp, 4
jmp 0x4dd8c8
mov bl, 1
jmp 0x4dd8c8
xor ebx, ebx
test al, al
je 0x4dd8c8
mov dword [esp + 4], ebx
mov dword [esp], ebx
push 0x208
push 0xff
lea esi, [esp + 0x30]
push esi
call fcn.005dfe70
add esp, 0xc
cmp byte [esp + 0x13], 0
jns 0x4dd851
mov eax, dword [esp + 8]
jmp 0x4dd855
lea eax, [esp + 8]
mov eax, dword [eax]
mov ecx, esp
mov dword [ecx], eax
push 0x104
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x4dd8c8
cmp eax, 0x104
je 0x4dd8c8
push esi
call fcn.005f8ba4
add esp, 4
mov edi, eax
movzx eax, byte [esp + 0x13]
test al, al
jns 0x4dd88c
mov eax, dword [esp + 0xc]
lea ecx, [edi + eax]
add ecx, 0xfffffffe
movzx eax, byte [esp + 0x23]
mov edx, eax
test al, al
jns 0x4dd8a1
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jne 0x4dd8c6
test al, al
jns 0x4dd8af
mov eax, dword [esp + 0x18]
jmp 0x4dd8b3
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.005f44c9
add esp, 0xc
test eax, eax
je 0x4dd90a
xor ebx, ebx
mov edi, ebx
cmp byte [esp + 0x13], 0
jns 0x4dd8dd
push dword [esp + 8]
call fcn.005dc756
add esp, 4
cmp byte [esp + 0x23], 0
jns 0x4dd8f0
push dword [esp + 0x18]
call fcn.005dc756
add esp, 4
mov ebx, edi
mov ecx, dword [esp + 0x230]
xor ecx, ebp
call fcn.005dd6f3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0xc]
mov eax, dword [ecx - 4]
add eax, 4
cmp byte [ecx + 7], 0
cmovns eax, ecx
cmp byte [esp + 0x23], 0
jns 0x4dd928
mov ecx, dword [esp + 0x18]
jmp 0x4dd92c
lea ecx, [esp + 0x18]
lea ecx, [ecx + edi*2]
push eax
push ecx
call fcn.005f434c
add esp, 8
test eax, eax
sete bl
jmp 0x4dd8c8