Function at 0x49d410
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592cc6
mov eax, dword fs:[0]
push eax
sub esp, 0x93c
mov eax, dword [0x60940c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x611014], 0
jne 0x49d5f6
lea eax, [ebp - 0x8ec]
mov byte [0x611014], 1
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
test ebx, ebx
jle 0x49d5f6
xor esi, esi
test ebx, ebx
jle 0x49d5f6
nop dword [eax + eax]
lea eax, [ebp - 0x8ec]
lea eax, [eax + esi*2]
lea edx, [ebp - 0x24]
sub edx, eax
nop
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x49d490
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d4a6
sub ecx, edx
inc esi
sar ecx, 1
add esi, ecx
lea ecx, [ecx*2 - 2]
cmp ecx, 0x14
jae 0x49d6a7
xor eax, eax
mov word [ebp + ecx - 0x24], ax
lea eax, [ebp - 0xec]
push 0xc8
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x49d612
xor eax, eax
mov dword [ebp - 0x8f4], 0
mov dword [ebp - 0x8f0], 0
mov dword [ebp - 0x8f0], 7
mov dword [ebp - 0x8f4], 0
mov word [ebp - 0x904], ax
cmp word [ebp - 0xec], ax
jne 0x49d52b
xor ecx, ecx
jmp 0x49d543
lea ecx, [ebp - 0xec]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d534
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x904]
call fcn.0040ae40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x904]
push eax
lea eax, [ebp - 0x90c]
mov ecx, 0x611018
push eax
call fcn.0049cb70
cmp word [ebp - 0x24], 0
mov edi, dword [ebp - 0x90c]
jne 0x49d586
xor ecx, ecx
jmp 0x49d59f
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d590
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x28]
call fcn.0040ae40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x8f0]
cmp eax, 8
jb 0x49d5d1
inc eax
lea ecx, [ebp - 0x904]
push eax
push dword [ebp - 0x904]
call fcn.0040b0e0
xor eax, eax
mov dword [ebp - 0x8f0], 7
mov dword [ebp - 0x8f4], 0
mov word [ebp - 0x904], ax
cmp esi, ebx
jl 0x49d480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b33d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 2
push str.void___cdecl_DevicePathMapper::Init_void_
push 0x2c
push str.D:jenkinsworkspacemicroclient_buildcommonDevicePathMapper.cpp
push 0x80
lea ecx, [ebp - 0x948]
mov dword [ebp - 0x908], eax
call fcn.00416340
mov dword [ebp - 4], 1
push str.find_device_name_failed
push dword [0x6085a8]
push 1
push eax
call fcn.0048d730
add esp, 0xc
mov ecx, eax
call fcn.00425140
mov esi, eax
cmp byte [esi + 0x20], 0
je 0x49d676
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 0x24]
call fcn.00488330
lea eax, [ebp - 0x908]
mov ecx, esi
push eax
push str.__ec
call fcn.00425140
mov ecx, eax
call fcn.00413a30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x948]
call fcn.0040e200
jmp 0x49d5f6
call fcn.0052b494
int3