Function at 0x42f380
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
mov byte [eax], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x42f3ad
mov eax, dword [esi]
push 8
push 0x5c4604
push eax
call fcn.0042228c
add esp, 0xc
test eax, eax
je 0x42f626
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42f3cf
mov eax, dword [esi]
push 2
push 0x5c4814
push eax
call fcn.0042228c
add esp, 0xc
test eax, eax
jne 0x42f3fe
cmp dword [esi + 0x10], 3
jbe 0x42f3fe
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42f3f3
mov eax, dword [esi]
cmp word [eax + 4], 0x3f
jne 0x42f626
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42f408
mov eax, dword [esi]
push 8
push 0x5c481c
push eax
call fcn.0042228c
add esp, 0xc
test eax, eax
je 0x42f626
push edi
mov edi, dword [esi + 0x14]
mov edx, esi
cmp edi, 8
jb 0x42f42d
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
push ebx
test ecx, ecx
je 0x42f613
mov eax, edx
nop dword [eax + eax]
cmp word [eax], 0x3a
je 0x42f461
add eax, 2
sub ecx, 1
jne 0x42f440
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
sub eax, edx
sar eax, 1
je 0x42f613
cmp eax, 0xffffffff
je 0x42f613
cmp eax, 1
jbe 0x42f491
mov ecx, esi
cmp edi, 8
jb 0x42f485
lfence
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 4], 0x5c
jne 0x42f613
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 8
jb 0x42f49d
mov ecx, dword [esi]
lea ebx, [eax + eax]
movzx ecx, word [ebx + ecx - 2]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x42f4b3
lea eax, [ecx - 0x61]
jmp 0x42f4c3
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x42f613
lea eax, [ecx - 0x41]
lea eax, [eax*4 + 0x634a90]
mov dword [ebp - 0x218], eax
mov eax, dword [eax]
cmp eax, 1
je 0x42f5e7
cmp eax, 2
je 0x42f613
push 0x208
lea eax, [ebp - 0x214]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0xc], xmm0
call fcn.0056aed0
add esp, 0xc
cmp edi, 8
jb 0x42f509
mov esi, dword [esi]
lea eax, [esi - 2]
add eax, ebx
je 0x42f603
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x214]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x42f613
cmp eax, 0x104
je 0x42f613
mov dword [ebp - 0x234], str.DeviceMup_
xor esi, esi
mov dword [ebp - 0x230], str.DeviceLanmanRedirector_
mov dword [ebp - 0x22c], str.DeviceWebDavRedirector_
mov dword [ebp - 0x228], str.DeviceWinDfs_
mov dword [ebp - 0x224], str.DeviceNetWareRedirector_
mov dword [ebp - 0x220], str.Device_nwrdr_
mov edx, dword [ebp + esi*4 - 0x234]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f590
sub ecx, edi
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push edx
push eax
call fcn.0042228c
add esp, 0xc
test eax, eax
je 0x42f5da
inc esi
cmp esi, 6
jb 0x42f581
mov ecx, dword [ebp - 0x218]
mov eax, 2
xchg dword [ecx], eax
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x218]
mov eax, 1
xchg dword [ecx], eax
mov eax, dword [ebp - 0x21c]
pop ebx
pop edi
pop esi
mov byte [eax], 1
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
call fcn.00413006
mov dword [eax], 0x16
call fcn.0056e2cb
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004016cd
mov esp, ebp
pop ebp
ret