Function at 0x40b546
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ebc26
push eax
mov dword fs:[0], esp
sub esp, 0x224
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
je 0x40b69f
cmp word [ebp], bx
je 0x40b69f
cmp dword [esp + 0x248], ebx
je 0x40b69f
mov ecx, 0x81
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
push str.__UNC
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x14], bx
mov dword [esp + 0x16], ebx
xor esi, esi
call fcn.00437501
push 0x519958
mov dword [esp + 0x2c], eax
call fcn.00437501
push str.Device_
mov dword [esp + 0x34], eax
call fcn.00437501
mov dword [esp + 0x2c], eax
push 2
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.004374c4
add esp, 0x18
lea ecx, [esp + 0x18]
push 0x52cb30
call fcn.0044fec0
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x23c], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push 0x3e2
push str._CSDViewerApp::GetNetRemotePath__Line:_d_Volume__s_
push str.safedisk
push 4
push 0x52e6a4
call fcn.0042b6d0
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
add esp, 0x18
lea edx, [esp + 0x2c]
lea eax, [esp + 0x10]
push 0x104
push edx
push eax
call ebp
cmp eax, ebx
je 0x40b689
lea ecx, [esp + 0x2c]
push ecx
push 0x3e9
push str._CSDViewerApp::GetNetRemotePath__Line:_d_Target__s_
push str.safedisk
push 4
push 0x52e6a4
call fcn.0042b6d0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x44]
push edx
push str.__UNC
push eax
call fcn.004381e6
add esp, 0x24
test eax, eax
jne 0x40b5b4
mov esi, 1
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push ecx
push str.Device_
push edx
call fcn.004381e6
add esp, 0xc
test eax, eax
jne 0x40b5f0
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], ebx
je 0x40b5f0
push 0x103
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004374c4
add esp, 0xc
mov esi, 1
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push edi
push 0x519958
push ecx
call fcn.004381e6
add esp, 0xc
test eax, eax
jne 0x40b6ba
xor edx, edx
lea eax, [esp + edi*2 + 0x2c]
push 2
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
push eax
push ecx
mov word [esp + 0x20], dx
call fcn.004374c4
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.004508e0
cmp esi, ebx
jne 0x40b6be
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push 0x3e2
push str._CSDViewerApp::GetNetRemotePath__Line:_d_Volume__s_
push str.safedisk
push 4
push 0x52e6a4
call fcn.0042b6d0
add esp, 0x18
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x10]
push 0x104
push ecx
push edx
call ebp
cmp eax, ebx
jne 0x40b574
lea ecx, [esp + 0x18]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00450660
xor eax, eax
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret 0xc
cmp esi, ebx
je 0x40b689
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push eax
call fcn.0044fec0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], 1
call fcn.00451990
push str.__unc
lea ecx, [esp + 0x20]
call fcn.00451840
cmp eax, 0xffffffff
je 0x40b71a
mov ecx, dword [esp + 0x24c]
mov esi, dword [esp + 0x248]
add ecx, 0xfffffffe
lea edx, [esp + 0x3a]
push ecx
lea eax, [esi + 2]
push edx
push eax
mov word [esi], 0x5c
call fcn.004374c4
add esp, 0xc
jmp 0x40b73f
mov ecx, dword [esp + 0x24c]
mov eax, dword [esp + 0x248]
dec ecx
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.004374c4
mov esi, dword [esp + 0x254]
add esp, 0xc
mov edx, dword [esp + 0x244]
lea ecx, [esp + 0x2c]
push esi
push ecx
push edx
push 0x413
push str._CSDViewerApp::GetNetRemotePath__Line:_d_QueryDosDevice__s__Suc.QueryTarget__s__FmtTarget__s_
push str.safedisk
push 4
push 0x52e6a4
call fcn.0042b6d0
add esp, 0x20
lea ecx, [esp + 0x1c]
mov esi, 1
mov byte [esp + 0x23c], bl
call fcn.00450660
lea ecx, [esp + 0x18]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00450660
mov eax, esi
jmp 0x40b69f