Function at 0x419c80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x419ca6
mov eax, dword [esi]
jmp 0x419ca8
mov eax, esi
push ebx
push str.__UNC_
push eax
call fcn.0041799b
add esp, 0xc
test eax, eax
je 0x419eee
cmp dword [esi + 0x14], ebx
jb 0x419cc8
mov eax, dword [esi]
jmp 0x419cca
mov eax, esi
push 2
push 0x512eb8
push eax
call fcn.0041799b
add esp, 0xc
test eax, eax
jne 0x419cfa
cmp dword [esi + 0x10], 3
jbe 0x419cfa
cmp dword [esi + 0x14], ebx
jb 0x419ced
mov eax, dword [esi]
jmp 0x419cef
mov eax, esi
cmp word [eax + 4], 0x3f
jne 0x419eee
cmp dword [esi + 0x14], ebx
jb 0x419d03
mov eax, dword [esi]
jmp 0x419d05
mov eax, esi
push ebx
push str._UNC_
push eax
call fcn.0041799b
add esp, 0xc
test eax, eax
je 0x419eee
push edi
push 1
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
mov dword [ebp - 0x218], 0x3a
call fcn.0040a410
mov edi, eax
test edi, edi
je 0x419eb9
cmp edi, 0xffffffff
je 0x419eb9
cmp edi, 1
jbe 0x419d68
cmp dword [esi + 0x14], ebx
jb 0x419d5a
mov eax, dword [esi]
jmp 0x419d5c
mov eax, esi
cmp word [eax + edi*2 - 4], 0x5c
jne 0x419eb9
mov ebx, dword [esi + 0x14]
cmp ebx, 8
jb 0x419d74
mov eax, dword [esi]
jmp 0x419d76
mov eax, esi
movzx eax, word [eax + edi*2 - 2]
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x419d89
add eax, 0xffffff9f
jmp 0x419d99
lea edx, [eax - 0x41]
cmp dx, 0x19
ja 0x419eb9
add eax, 0xffffffbf
lea eax, [eax*4 + 0x5513d0]
mov dword [ebp - 0x218], eax
mov eax, dword [eax]
cmp eax, 1
je 0x419edb
cmp eax, 2
je 0x419eb9
xor ecx, ecx
push 0x206
xor eax, eax
push ecx
lea edx, [ebp - 0x212]
push edx
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov word [ebp - 0x214], cx
call fcn.004e15a0
add esp, 0xc
cmp ebx, 8
jb 0x419dec
mov esi, dword [esi]
push 4
lea eax, [esi + edi*2 - 2]
push eax
lea ecx, [ebp - 0xc]
push 8
push ecx
call fcn.0041a095
add esp, 0x10
test eax, eax
jne 0x419eb9
push 0x104
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x419eb9
cmp eax, 0x104
je 0x419eb9
mov dword [ebp - 0x230], str.DeviceMup_
mov dword [ebp - 0x22c], str.DeviceLanmanRedirector_
mov dword [ebp - 0x228], str.DeviceWebDavRedirector_
mov dword [ebp - 0x224], str.DeviceWinDfs_
mov dword [ebp - 0x220], str.DeviceNetWareRedirector_
mov dword [ebp - 0x21c], str.Device_nwrdr_
xor esi, esi
mov edx, dword [ebp + esi*4 - 0x230]
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419e80
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x214]
push ecx
call fcn.0041799b
add esp, 0xc
test eax, eax
je 0x419ecc
inc esi
cmp esi, 6
jb 0x419e71
mov eax, dword [ebp - 0x218]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x218]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call int.00401316
mov esp, ebp
pop ebp
ret