Function at 0x41a240
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 8
mov byte [eax], 0
mov dword [ebp - 0x21c], eax
cmp dword [esi + 0x14], ebx
jb 0x41a272
mov eax, dword [esi]
jmp 0x41a274
mov eax, esi
push ebx
push str.__UNC_
push eax
call fcn.00417b2b
add esp, 0xc
test eax, eax
je 0x41a4e7
cmp dword [esi + 0x14], ebx
jb 0x41a294
mov eax, dword [esi]
jmp 0x41a296
mov eax, esi
push 2
push 0x517028
push eax
call fcn.00417b2b
add esp, 0xc
test eax, eax
jne 0x41a2c6
cmp dword [esi + 0x10], 3
jbe 0x41a2c6
cmp dword [esi + 0x14], ebx
jb 0x41a2b9
mov eax, dword [esi]
jmp 0x41a2bb
mov eax, esi
cmp word [eax + 4], 0x3f
jne 0x41a4e7
cmp dword [esi + 0x14], ebx
jb 0x41a2cf
mov eax, dword [esi]
jmp 0x41a2d1
mov eax, esi
push ebx
push str._UNC_
push eax
call fcn.00417b2b
add esp, 0xc
test eax, eax
je 0x41a4e7
push edi
push 1
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
mov dword [ebp - 0x218], 0x3a
call fcn.0040a590
mov edi, eax
test edi, edi
je 0x41a4a9
cmp edi, 0xffffffff
je 0x41a4a9
cmp edi, 1
jbe 0x41a334
cmp dword [esi + 0x14], ebx
jb 0x41a326
mov eax, dword [esi]
jmp 0x41a328
mov eax, esi
cmp word [eax + edi*2 - 4], 0x5c
jne 0x41a4a9
mov ebx, dword [esi + 0x14]
cmp ebx, 8
jb 0x41a340
mov eax, dword [esi]
jmp 0x41a342
mov eax, esi
movzx eax, word [eax + edi*2 - 2]
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x41a355
add eax, 0xffffff9f
jmp 0x41a365
lea edx, [eax - 0x41]
cmp dx, 0x19
ja 0x41a4a9
add eax, 0xffffffbf
lea eax, [eax*4 + 0x5563f8]
mov dword [ebp - 0x218], eax
mov eax, dword [eax]
cmp eax, 1
jne 0x41a395
mov eax, dword [ebp - 0x21c]
pop edi
pop esi
mov byte [eax], 1
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x41a4a9
xor eax, eax
xor edx, edx
push 0x206
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
push edx
lea eax, [ebp - 0x212]
xor ecx, ecx
push eax
mov word [ebp - 0xc], cx
mov word [ebp - 0x214], dx
call fcn.004e41d0
add esp, 0xc
cmp ebx, 8
jb 0x41a3d2
mov esi, dword [esi]
push 4
lea ecx, [esi + edi*2 - 2]
push ecx
lea edx, [ebp - 0xc]
push 8
push edx
call fcn.0041a605
add esp, 0x10
test eax, eax
jne 0x41a4a9
push 0x104
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x41a4a9
cmp eax, 0x104
je 0x41a4a9
mov dword [ebp - 0x234], str.DeviceMup_
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_
xor esi, esi
jmp 0x41a460
mov edx, dword [ebp + esi*4 - 0x234]
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a470
sub eax, edi
sar eax, 1
push eax
push edx
lea edx, [ebp - 0x214]
push edx
call fcn.00417b2b
add esp, 0xc
test eax, eax
je 0x41a4bc
inc esi
cmp esi, 6
jb 0x41a460
mov edx, dword [ebp - 0x218]
push 2
push edx
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 fcn.00401316
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x218]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x21c]
pop edi
pop esi
mov byte [ecx], 1
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret