Function at 0x4da920
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x240
mov edi, dword [ebp + 0xc]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x238], eax
lea esi, [esp + 0x28]
mov ecx, esi
push edi
call fcn.005477d0
push esi
call fcn.005a27a0
add esp, 4
mov ebx, eax
cmp byte [esi + 0xb], 0
jns 0x4da969
push dword [esp + 0x28]
call fcn.0050fc7c
add esp, 4
mov al, 1
test bl, bl
je 0x4da989
mov ecx, dword [esp + 0x238]
xor ecx, ebp
mov ebx, eax
call fcn.00512ee3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
xor ecx, ecx
lea ebx, [esp + 0x18]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [esp], 0
mov dword [ebx + 8], ecx
push ebx
push eax
call fcn.005a2810
add esp, 8
test al, al
jne 0x4da9c7
cmp byte [esp + 0x23], 0
jns 0x4da9c2
push dword [esp + 0x18]
call fcn.0050fc7c
add esp, 4
mov eax, dword [esp]
jmp 0x4da96f
xor eax, eax
dec eax
lea ecx, [esp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push edi
mov edi, ecx
call fcn.005477d0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4da9ec
mov edx, dword [esp + 0xc]
jmp 0x4da9f1
mov edx, eax
and edx, 0x7f
test edx, edx
je 0x4daca1
test al, al
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov eax, edi
cmovs edi, ecx
cmp word [edi + edx*2 - 2], 0x5c
jne 0x4daa57
dec edx
lea edi, [esp + 0x14]
lea ecx, [esp + 0x28]
push edi
push edx
push 0
push eax
call fcn.0040e560
cmp byte [edi - 1], 0
jns 0x4daa34
push dword [esp + 8]
call fcn.0050fc7c
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 8], xmm0
mov al, byte [esp + 0x13]
mov dword [esp], eax
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
cmp byte [esp], 0
cmovs eax, ecx
cmp byte [esp + 0x23], 0
jns 0x4daa69
mov ebx, dword [esp + 0x18]
push eax
push ebx
call fcn.0052fb62
add esp, 8
mov dl, 1
test eax, eax
jne 0x4daa98
mov dword [esp], edx
cmp byte [esp + 0x13], 0
jns 0x4da9af
push dword [esp + 8]
call fcn.0050fc7c
add esp, 4
jmp 0x4da9af
lea edi, [esp + 8]
mov ecx, edi
mov edx, edi
call fcn.005a2b00
mov byte [esp], al
movzx ebx, byte [edi + 0xb]
mov eax, ebx
and eax, 0x7f
test bl, bl
mov edx, dword [edi + 4]
cmovs eax, edx
cmp eax, 3
jb 0x4dab0d
test bl, bl
mov eax, dword [esp + 8]
mov ecx, edi
cmovs ecx, eax
cmp word [ecx + 2], 0x3a
jne 0x4dab0d
mov dword [esp + 4], ebx
mov ebx, dword [esp + 4]
and ebx, 0x7e
cmp byte [esp + 4], 0
cmovs ebx, edx
cmp ebx, 1
jbe 0x4daca4
cmp byte [esp + 4], 0
cmovns eax, edi
cmp word [eax + 4], 0x5c
jne 0x4dab11
movzx eax, word [ecx]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
setb cl
jmp 0x4dab13
xor ecx, ecx
jmp 0x4dab17
xor ecx, ecx
mov ebx, dword [esp + 4]
test cl, cl
jne 0x4dab25
xor byte [esp], 1
je 0x4dabc4
xor edx, edx
test cl, cl
je 0x4daa79
mov dword [esp + 0x234], edx
mov dword [esp + 0x230], edx
push 0x208
push 0xff
push esi
call fcn.005191b0
add esp, 0xc
test bl, bl
jns 0x4dab5a
mov eax, dword [esp + 8]
jmp 0x4dab5e
lea eax, [esp + 8]
mov eax, dword [eax]
lea ecx, [esp + 0x230]
mov dword [ecx], eax
push 0x104
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x4dab8d
mov dl, 1
cmp eax, 5
je 0x4daa79
cmp edi, 2
jae 0x4dab99
xor edx, edx
jmp 0x4daa79
cmp edi, 0x104
mov edx, 0
je 0x4daa79
push esi
call fcn.00510eb5
add esp, 4
mov edi, eax
movzx eax, byte [esp + 0x13]
test al, al
jns 0x4dac22
mov eax, dword [esp + 0xc]
jmp 0x4dac25
xor eax, eax
lea esi, [esp + 0x28]
mov dword [esi + 4], eax
mov dword [esi], eax
xor ebx, ebx
mov dword [esi + 8], eax
lea ecx, [esp + 0x18]
mov edx, esi
call fcn.005a2ba0
test al, al
je 0x4dac08
cmp byte [esp + 0x13], 0
jns 0x4dabee
mov edi, dword [esp + 8]
cmp byte [esp + 0x33], 0
jns 0x4dabf9
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.0052fb62
add esp, 8
test eax, eax
sete bl
cmp byte [esp + 0x33], 0
jns 0x4dac1b
push dword [esp + 0x28]
call fcn.0050fc7c
add esp, 4
mov edx, ebx
jmp 0x4daa79
and eax, 0x7f
lea ecx, [edi + eax]
add ecx, 0xfffffffe
movzx eax, byte [esp + 0x23]
test al, al
jns 0x4dac3a
mov edx, dword [esp + 0x1c]
jmp 0x4dac3f
mov edx, eax
and edx, 0x7f
cmp ecx, edx
jne 0x4dab92
test al, al
jns 0x4dac51
mov eax, dword [esp + 0x18]
jmp 0x4dac55
lea eax, [esp + 0x18]
push edi
push esi
push eax
call fcn.0052fefc
add esp, 0xc
test eax, eax
jne 0x4dab92
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 0x4dac86
mov ecx, dword [esp + 0x18]
jmp 0x4dac8a
lea ecx, [esp + 0x18]
lea ecx, [ecx + edi*2]
push eax
push ecx
call fcn.0052fb62
add esp, 8
test eax, eax
sete dl
jmp 0x4daa79
int3
int3