Function at 0x107f34f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push 0x101c278
mov edi, ecx
xor esi, esi
call fcn.0107ce25
test al, al
je 0x107f6b3
mov eax, dword [edi + 0x28]
xor ecx, ecx
cmp eax, esi
je 0x107f37e
cmp word [eax], si
setne cl
test cl, cl
je 0x107f6b3
push ebx
push dword [edi + 0x28]
call fcn.010b2929
mov ebx, eax
test ebx, ebx
je 0x107f4e4
push 0x101c5d8
push ebx
call fcn.0104223c
test al, al
jne 0x107f3bb
push 0x101c5d0
push ebx
call fcn.0104223c
test al, al
je 0x107f4e4
lea ecx, [ebp - 0x14]
call fcn.010424ee
mov eax, dword [edi + 0x28]
mov bx, word [eax]
cmp bx, 0x5c
jne 0x107f3d2
push 0x42
pop ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0107cd51
mov esi, eax
test esi, esi
jl 0x107f4dc
push 0x1002298
mov ecx, edi
call fcn.0107f28d
mov esi, eax
test esi, esi
jl 0x107f4dc
lea ecx, [ebp - 0x2c]
call fcn.010424ee
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, edi
call fcn.0107f08b
mov esi, eax
test esi, esi
jl 0x107f4d4
push 4
push 0x101c5c4
lea ecx, [ebp - 0x14]
or esi, 0xffffffff
call fcn.01042976
test eax, eax
jne 0x107f474
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 8]
push eax
call dword [sym.imp.msvcrt.dll_iswdigit]
test eax, eax
pop ecx
je 0x107f474
lea ecx, [ebp - 0x38]
call fcn.010424ee
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
add eax, 8
push eax
lea ecx, [ebp - 0x38]
call fcn.01042ec9
test eax, eax
jl 0x107f46c
lea ecx, [ebp - 0x38]
call fcn.01042acc
mov esi, eax
lea ecx, [ebp - 0x38]
call fcn.01042e75
lea ecx, [ebp - 0x20]
call fcn.010424ee
cmp esi, 0xffffffff
push dword [ebp - 0x2c]
movzx eax, bx
je 0x107f4a1
push esi
push eax
push 0x101c2cc
lea eax, [ebp - 0x20]
push 0x101c590
push eax
call fcn.01043352
add esp, 0x18
jmp 0x107f4b8
push eax
push 0x101c2cc
lea eax, [ebp - 0x20]
push 0x101c564
push eax
call fcn.01043352
add esp, 0x14
mov esi, eax
test esi, esi
jl 0x107f4cc
push dword [ebp - 0x20]
mov ecx, edi
push 1
call fcn.0107f141
mov esi, eax
lea ecx, [ebp - 0x20]
call fcn.01042e75
lea ecx, [ebp - 0x2c]
call fcn.01042e75
lea ecx, [ebp - 0x14]
jmp 0x107f6ad
mov ecx, edi
call fcn.0107d601
cmp eax, 4
jne 0x107f638
push dword [edi + 0x28]
call fcn.010b1f4d
test al, al
je 0x107f638
lea ecx, [ebp - 0x20]
call fcn.010424ee
lea ecx, [ebp - 0x14]
call fcn.010424ee
mov eax, dword [edi + 0x28]
push 2
push eax
lea ecx, [ebp - 0x20]
call fcn.01042ec9
mov esi, eax
test esi, esi
jl 0x107f62b
mov ebx, 0x104
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.01042e7f
mov esi, eax
test esi, esi
jl 0x107f62b
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call sub.MPR.dll_WNetGetConnectionW
cmp eax, 0xea
jne 0x107f587
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.01042e7f
mov esi, eax
test esi, esi
jl 0x107f62b
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jle 0x107f5bb
jmp 0x107f5c8
test eax, eax
je 0x107f604
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x107f5d4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x107f5b0
push 0x57
pop eax
test eax, eax
jg 0x107f5bf
call esi
test eax, eax
jne 0x107f5bb
push 0x57
pop eax
mov esi, eax
jmp 0x107f604
call esi
test eax, eax
jne 0x107f5c8
push 0x57
pop eax
and eax, 0xffff
or eax, 0x80070000
jmp 0x107f5bb
push 0x101c554
lea ecx, [ebp - 0x14]
call fcn.010427d1
test eax, eax
jne 0x107f5ff
mov eax, dword [ebp - 0x14]
add eax, 0xe
push eax
lea eax, [ebp - 0x14]
push 0x101c54c
push eax
call fcn.01043352
add esp, 0xc
jmp 0x107f5bb
mov esi, 0xc00d1327
test esi, esi
jl 0x107f62b
mov eax, dword [edi + 0x28]
push 0xffffffffffffffff
add eax, 4
push eax
lea ecx, [ebp - 0x14]
call fcn.01043145
mov esi, eax
test esi, esi
jl 0x107f62b
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0107e456
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.01042e75
lea ecx, [ebp - 0x20]
jmp 0x107f6ad
test ebx, ebx
je 0x107f6b2
push 0x101c544
push ebx
call fcn.0104223c
test al, al
je 0x107f6b2
mov eax, dword [edi + 0x28]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov ecx, edi
call fcn.0107cf80
mov esi, eax
test esi, esi
jl 0x107f6b2
push 0xffffffffffffffff
push 0x101c2a4
lea ecx, [edi + 0x1c]
call fcn.01042ec9
mov esi, eax
test esi, esi
jl 0x107f6b2
lea ecx, [ebp - 0x38]
call fcn.010424ee
push dword [ebp - 4]
lea eax, [ebp - 0x38]
push dword [ebp - 8]
push 0x101c538
push eax
call fcn.01043352
mov esi, eax
add esp, 0x10
test esi, esi
jl 0x107f6aa
push dword [ebp - 0x38]
mov ecx, edi
call fcn.0107e456
mov esi, eax
lea ecx, [ebp - 0x38]
call fcn.01042e75
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret