Function at 0x40daf0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edx, edx
push 0x3fe
mov dword [ebp - 0x8d4], eax
push edx
lea eax, [ebp - 0x4be]
push eax
mov dword [ebp - 0x8c4], ecx
mov word [ebp - 0x4c0], dx
call fcn.004da450
mov ecx, 0xc
mov esi, str.DeviceLanmanRedirector
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
push 0x400
movsw word es:[edi], word [esi]
mov dword [ebp - 0x8c8], 1
call fcn.004d4853
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x8d0], ebx
test ebx, ebx
je 0x40db86
push 0x400
call fcn.004d4853
mov edi, eax
add esp, 4
mov dword [ebp - 0x8cc], edi
test edi, edi
jne 0x40db9b
push ebx
call fcn.004d632b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x8c4]
push ecx
lea edx, [ebp - 0x4c0]
push 0x200
push edx
call fcn.004d72e3
push 0x50a620
push 0x200
push edi
call fcn.004d72e3
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor esi, esi
mov dword [ebp - 0x8dc], eax
mov dword [ebp - 0x8d8], esi
lea ebx, [ebx]
mov eax, dword [ebp - 0x8dc]
test dword [ebp - 0x8c8], eax
je 0x40dc4f
push 0x200
push ebx
lea ecx, [esi + 0x41]
push edi
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40dc4f
push 0x1a
push str.DeviceHarddiskDmVolumes_
push ebx
call fcn.004d75a2
add esp, 0xc
test eax, eax
jne 0x40dc1e
call fcn.0040d740
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dc23
sub eax, edx
mov edx, dword [ebp - 0x8c4]
sar eax, 1
mov esi, eax
push esi
push edx
push ebx
call fcn.004d75a2
add esp, 0xc
test eax, eax
je 0x40dc9d
mov esi, dword [ebp - 0x8d8]
shl dword [ebp - 0x8c8], 1
inc esi
mov dword [ebp - 0x8d8], esi
cmp esi, 0x20
jl 0x40dbe0
mov eax, dword [ebp - 0x8d4]
cmp dword [eax + 0x824], 0
je 0x40dd6b
mov eax, dword [eax + 0x820]
mov esi, dword [eax]
cmp esi, eax
je 0x40dd6b
jmp 0x40dc90
cmp dword [esi + 0x3c], 8
lea edx, [esi + 0x28]
jb 0x40dcd4
mov eax, dword [edx]
jmp 0x40dcd6
mov eax, dword [ebp - 0x8c4]
push edi
push 0x200
push eax
call fcn.004d72e3
mov edx, dword [ebp - 0x8c4]
lea ecx, [ebp + esi*2 - 0x4c0]
push ecx
push 0x200
push edx
call fcn.004d65c3
push ebx
call fcn.004d632b
push edi
jmp 0x40df70
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dce0
sub eax, edi
sar eax, 1
cmp dword [edx + 0x14], 8
mov edi, eax
jb 0x40dcf9
mov edx, dword [edx]
mov eax, dword [ebp - 0x8c4]
push edi
push eax
push edx
call fcn.004d75a2
add esp, 0xc
test eax, eax
je 0x40dec5
cmp byte [esi + 0x45], 0
jne 0x40dd59
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x45], 0
jne 0x40dd3e
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
jne 0x40dd3a
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x40dd30
mov esi, ecx
jmp 0x40dd59
mov eax, dword [esi + 4]
cmp byte [eax + 0x45], 0
jne 0x40dd57
cmp esi, dword [eax + 8]
jne 0x40dd57
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x40dd47
mov esi, eax
mov ecx, dword [ebp - 0x8d4]
cmp esi, dword [ecx + 0x820]
jne 0x40dc90
mov eax, dword [0x539d94]
cmp eax, 4
je 0x40dd89
cmp eax, 5
je 0x40dd89
cmp eax, 6
je 0x40dd89
cmp eax, 7
je 0x40dd89
cmp eax, 8
jne 0x40dd9c
push str.DeviceMup
lea edx, [ebp - 0x54]
push 0x32
push edx
call fcn.004d72e3
add esp, 0xc
lea eax, [ebp - 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dda2
mov ecx, 0xd
mov esi, str.DeviceNetWareRedirector
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xd
mov esi, str.DeviceNetWareWorkstation
lea edi, [ebp - 0xc0]
rep movsd dword es:[edi], dword [esi]
sub eax, edx
movsw word es:[edi], word [esi]
sar eax, 1
mov ebx, eax
mov ecx, 7
mov esi, str.DeviceNwRdr
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x8c4]
push ebx
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.004d75a2
add esp, 0xc
test eax, eax
je 0x40df3a
lea ebx, [ebp - 0x88]
lea ecx, [ebx + 2]
lea ecx, [ecx]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40de10
sub ebx, ecx
sar ebx, 1
push ebx
lea ecx, [ebp - 0x88]
push esi
push ecx
call fcn.004d75a2
add esp, 0xc
test eax, eax
je 0x40df3a
lea ebx, [ebp - 0xc0]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40de41
sub ebx, ecx
sar ebx, 1
push ebx
lea edx, [ebp - 0xc0]
push esi
push edx
call fcn.004d75a2
add esp, 0xc
test eax, eax
je 0x40df3a
lea ebx, [ebp - 0x20]
lea ecx, [ebx + 2]
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40de70
sub ebx, ecx
sar ebx, 1
push ebx
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.004d75a2
add esp, 0xc
test eax, eax
je 0x40df3a
mov ecx, dword [ebp - 0x8d0]
push ecx
call fcn.004d632b
mov edx, dword [ebp - 0x8cc]
push edx
call fcn.004d632b
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret 4
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x8be]
push eax
mov word [ebp - 0x8c0], dx
call fcn.004da450
mov ecx, dword [ebp - 0x8c4]
push ecx
lea edx, [ebp - 0x8c0]
push 0x200
push edx
call fcn.004d72e3
lea eax, [esi + 0xc]
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x40df06
mov eax, dword [eax]
mov esi, dword [ebp - 0x8c4]
push eax
push 0x200
push esi
call fcn.004d72e3
lea eax, [ebp + edi*2 - 0x8be]
push eax
push 0x200
push esi
call fcn.004d65c3
push ebx
call fcn.004d632b
mov ecx, dword [ebp - 0x8cc]
push ecx
jmp 0x40df70
push 0x504a74
push 0x200
push esi
call fcn.004d72e3
lea eax, [ebp + ebx*2 - 0x4c0]
push eax
push 0x200
push esi
call fcn.004d65c3
mov ecx, dword [ebp - 0x8d0]
push ecx
call fcn.004d632b
mov edx, dword [ebp - 0x8cc]
push edx
call fcn.004d632b
mov ecx, dword [ebp - 4]
add esp, 0x20
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004d5564
mov esp, ebp
pop ebp
ret 4