Function at 0x40d830
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f657b
mov eax, dword fs:[0]
push eax
sub esp, 0xa3c
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x3fe
xor esi, esi
lea ecx, [ebp - 0xa22]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0xa44], ebx
mov word [ebp - 0xa24], ax
call fcn.004da450
push 0x3fe
lea eax, [ebp - 0x622]
xor edx, edx
push esi
push eax
mov word [ebp - 0x624], dx
call fcn.004da450
push edi
lea edx, [ebp - 0x624]
xor ecx, ecx
push 0x200
push edx
mov word [ebp - 0x18], cx
mov dword [ebp - 0x16], esi
call fcn.004d72e3
push 2
lea eax, [ebp - 0x624]
push 0x50a5cc
push eax
call fcn.004d75a2
add esp, 0x30
test eax, eax
jne 0x40d929
mov eax, dword [0x539d94]
cmp eax, 4
je 0x40d8f7
cmp eax, 5
je 0x40d8f7
cmp eax, 6
je 0x40d8f7
cmp eax, 7
je 0x40d8f7
cmp eax, 8
je 0x40d8f7
push str.DeviceLanmanRedirector
jmp 0x40d8fc
push str.DeviceMup
push 0x200
push edi
call fcn.004d72e3
add esp, 0xc
lea ecx, [ebp - 0x622]
push ecx
push 0x200
push edi
call fcn.004d65c3
add esp, 0xc
mov eax, 1
jmp 0x40dac4
cmp dword [ebp + 8], esi
je 0x40da3e
push 0x208
lea eax, [ebp - 0x222]
xor edx, edx
push esi
push eax
mov word [ebp - 0x224], dx
call fcn.004da450
add esp, 0xc
push 0x105
lea ecx, [ebp - 0x224]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
lea eax, [ebp - 0x224]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40d970
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x40da3e
lea eax, [ebp - 0x224]
lea ecx, [ebp - 0xa40]
call fcn.00401c60
mov dword [ebp - 4], esi
lea edx, [ebp - 0xa48]
push edx
add ebx, 0x81c
mov esi, eax
call fcn.00410aa0
mov esi, dword [eax]
mov dword [ebp - 4], 0xffffffff
mov ebx, 8
cmp dword [ebp - 0xa2c], ebx
jb 0x40d9d5
mov eax, dword [ebp - 0xa40]
push eax
call fcn.004d5559
add esp, 4
mov edx, dword [ebp - 0xa44]
xor ecx, ecx
mov dword [ebp - 0xa2c], 7
mov dword [ebp - 0xa30], 0
mov word [ebp - 0xa40], cx
cmp dword [edx + 0x820], esi
je 0x40da3e
cmp dword [esi + 0x3c], ebx
lea eax, [esi + 0x28]
jb 0x40da0a
mov eax, dword [eax]
push eax
push 0x200
push edi
call fcn.004d72e3
lea eax, [ebp - 0x224]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da22
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x626]
push eax
jmp 0x40d911
push 2
push edi
lea ecx, [ebp - 0x18]
push 3
push ecx
call fcn.004d57db
add esp, 0x10
push 0x200
lea eax, [ebp - 0xa24]
push eax
lea ecx, [ebp - 0x18]
xor edx, edx
push ecx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40dac2
push 0x1a
lea edx, [ebp - 0xa24]
push str.DeviceHarddiskDmVolumes_
push edx
call fcn.004d75a2
add esp, 0xc
test eax, eax
jne 0x40da94
lea ebx, [ebp - 0xa24]
call fcn.0040d740
lea eax, [ebp - 0xa24]
push eax
push 0x200
push edi
call fcn.004d72e3
lea ecx, [ebp - 0x620]
push ecx
push 0x200
push edi
call fcn.004d65c3
add esp, 0x18
mov eax, 1
jmp 0x40dac4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret 4