Function at 0x4023bb
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
push ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x24], ebx
call fcn.00407c3b
mov ecx, esi
call fcn.00402319
test al, al
je 0x4023fc
mov al, 1
jmp 0x402525
push 2
push 4
lea eax, [ebp - 0x6c]
push str.___
push eax
call dword [sym.imp.xul.dll_NS_StringContainerInit2]
push ebx
mov ebx, dword [sym.imp.xul.dll_NS_StringGetData]
lea eax, [ebp - 0x18]
push eax
push esi
call ebx
mov dword [ebp - 0x14], eax
xor eax, eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6c]
push eax
call ebx
xor ebx, ebx
mov dword [ebp - 0x20], eax
add esp, 0x28
inc ebx
cmp dword [ebp - 0x14], 6
jb 0x40247d
push 5
mov ecx, esi
call fcn.00401a5c
cmp ax, 0x3a
jne 0x40247d
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x14], eax
jb 0x40247d
push eax
xor eax, eax
mov dword [ebp - 0x24], ebx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00403ac2
push 0x405341
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00405522
test al, al
je 0x40247d
mov byte [ebp - 0xd], bl
jmp 0x402482
xor eax, eax
mov byte [ebp - 0xd], al
mov esi, dword [sym.imp.xul.dll_NS_StringContainerFinish]
test byte [ebp - 0x24], bl
je 0x402494
lea eax, [ebp - 0x40]
push eax
call esi
pop ecx
cmp byte [ebp - 0xd], 0
je 0x4024b7
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.xul.dll_NS_StringCopy]
xor eax, eax
push eax
push eax
push 4
push eax
push edi
call dword [sym.imp.xul.dll_NS_StringSetDataRange]
add esp, 0x1c
jmp 0x40251c
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.xul.dll_NS_StringContainerInit]
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x4c]
call fcn.00404a19
push eax
xor eax, eax
push eax
jmp 0x402504
xor eax, eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.xul.dll_NS_StringGetData]
mov ecx, dword [ebp - 0x14]
add esp, 0xc
cmp ecx, eax
jbe 0x402536
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00407c3b
push 0xffffffffffffffff
lea ecx, [ebp - 0x4c]
call fcn.00404a19
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4024d2
xor eax, eax
mov bl, al
lea eax, [ebp - 0x4c]
push eax
call esi
pop ecx
lea eax, [ebp - 0x6c]
push eax
call esi
pop ecx
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411f6c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x4c]
call fcn.00404991
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], eax
call fcn.0040542a
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.xul.dll_NS_StringContainerInit]
lea ecx, [ebp - 0x30]
mov dword [esp], 0x104
call fcn.00407c3b
mov ecx, dword [0x4139c4]
mov ax, word [0x4139c8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov word [ebp - 8], ax
mov ax, word [ecx]
mov word [ebp - 0xc], ax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.xul.dll_NS_StringGetData]
add esp, 0xc
lea ecx, [ebp - 0x30]
push eax
push 0xffffffffffffffff
call fcn.00404a19
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x402623
mov esi, eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x402616
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.xul.dll_NS_StringGetData]
add esp, 0xc
lea ecx, [ebp - 0x30]
add eax, eax
push eax
call fcn.00407c3b
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.xul.dll_NS_StringGetData]
add esp, 0xc
lea ecx, [ebp - 0x30]
push eax
push 0xffffffffffffffff
call fcn.00404a19
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
test esi, esi
je 0x4025c0
push 1
test esi, esi
mov esi, dword [sym.imp.xul.dll_NS_StringContainerFinish]
pop ebx
je 0x402681
lea ecx, [ebp - 0x30]
call fcn.00404991
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, word [ebp - 0x50]
jne 0x40262e
mov ecx, dword [ebp - 0x1c]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x24], eax
call fcn.00404991
mov ecx, dword [ebp - 0x24]
lea eax, [eax + ecx*2]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], eax
call fcn.00404991
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.00404991
push eax
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x402681
mov eax, dword [ebp - 0x20]
cmp word [eax], 0x5c
je 0x402740
mov ecx, dword [ebp - 0x14]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402684
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x18]
jne 0x40257b
push 2
push 2
lea eax, [ebp - 0x78]
push 0x4139cc
push eax
call dword [sym.imp.xul.dll_NS_StringContainerInit2]
push 2
push 0xc
lea eax, [ebp - 0x84]
push str.DeviceMup_
push eax
call dword [sym.imp.xul.dll_NS_StringContainerInit2]
push 0x405341
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x1c]
call fcn.004028b9
add esp, 0x2c
test al, al
je 0x40276e
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.xul.dll_NS_StringCopy]
xor eax, eax
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.xul.dll_NS_StringGetData]
add esp, 0x14
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x1c]
call fcn.00403a81
xor eax, eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.xul.dll_NS_StringGetData]
push eax
push dword [ebp - 0x18]
xor eax, eax
push eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.xul.dll_NS_StringSetDataRange]
lea eax, [ebp - 0x40]
push eax
call esi
add esp, 0x24
jmp 0x4027fb
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.xul.dll_NS_StringSetData]
push 0xffffffffffffffff
push dword [ebp - 0x20]
xor eax, eax
push eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.xul.dll_NS_StringSetDataRange]
push edi
call fcn.00401ca2
add esp, 0x24
mov bl, al
jmp 0x40280c
push 2
push 0x19
lea eax, [ebp - 0x60]
push str.DeviceLanmanRedirector_
push eax
call dword [sym.imp.xul.dll_NS_StringContainerInit2]
push 0x405341
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x1c]
call fcn.004028b9
add esp, 0x1c
test al, al
je 0x4027f0
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.xul.dll_NS_StringCopy]
xor eax, eax
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.xul.dll_NS_StringGetData]
add esp, 0x14
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x1c]
call fcn.00403a81
xor eax, eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.xul.dll_NS_StringGetData]
push eax
push dword [ebp - 0x18]
xor eax, eax
push eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.xul.dll_NS_StringSetDataRange]
lea eax, [ebp - 0x40]
push eax
call esi
add esp, 0x24
jmp 0x4027f4
xor eax, eax
mov bl, al
lea eax, [ebp - 0x60]
push eax
call esi
pop ecx
lea eax, [ebp - 0x84]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
call esi
pop ecx
jmp 0x402515